Skip to content

Commit

Permalink
Merge pull request #7 from zhz0704/workflow
Browse files Browse the repository at this point in the history
Update npm build command
  • Loading branch information
dubiety authored Aug 29, 2024
2 parents 29dd28c + 43e5a38 commit 33f3e0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package
name: Publish Node.js Package

on:
release:
Expand Down Expand Up @@ -29,7 +29,7 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci --force
- run: npm run build --if-present
- run: npm run build --if-present --isNpmBuild
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 33f3e0e

Please sign in to comment.