Skip to content

Commit

Permalink
Cleanup, add npm run build in publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapang committed Dec 6, 2023
1 parent 59fa9fc commit 4d5e5a4
Show file tree
Hide file tree
Showing 3 changed files with 3,800 additions and 11,899 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,8 @@ on:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
# Skip post-install scripts here, as a malicious
# script could steal NODE_AUTH_TOKEN.
- run: npm ci --ignore-scripts
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# `npm rebuild` will run all those post-install scripts for us.
# - run: npm rebuild && npm run prepare --if-present
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest

permissions:
Expand All @@ -41,6 +21,7 @@ jobs:
node-version: 18.x
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.ROKS_ACTION}}
Loading

0 comments on commit 4d5e5a4

Please sign in to comment.