Skip to content

Commit 33f3e0e

Browse files
authored
Merge pull request #7 from zhz0704/workflow
Update npm build command
2 parents 29dd28c + 43e5a38 commit 33f3e0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/node.js.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030
cache: 'npm'

.github/workflows/npm-publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
22
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
33

4-
name: Node.js Package
4+
name: Publish Node.js Package
55

66
on:
77
release:
@@ -29,7 +29,7 @@ jobs:
2929
node-version: 20
3030
registry-url: https://registry.npmjs.org/
3131
- run: npm ci --force
32-
- run: npm run build --if-present
32+
- run: npm run build --if-present --isNpmBuild
3333
- run: npm publish
3434
env:
3535
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)