Skip to content

Commit f313cc0

Browse files
committed
fix release action
1 parent a19fce5 commit f313cc0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
name: Node.js Package
55

66
on:
7-
release:
8-
types: [created]
7+
push:
8+
branches:
9+
- master
910

1011
jobs:
1112
build:
@@ -14,7 +15,7 @@ jobs:
1415
- uses: actions/checkout@v2
1516
- uses: actions/setup-node@v2
1617
with:
17-
node-version: 16
18+
node-version: 18
1819
- run: npm ci
1920
- run: npm test --maxWorkers=2 --maxConcurrent=2
2021

@@ -25,11 +26,10 @@ jobs:
2526
- uses: actions/checkout@v2
2627
- uses: actions/setup-node@v2
2728
with:
28-
node-version: 16
29+
node-version: 18
2930
registry-url: https://registry.npmjs.org/
3031
- run: npm ci
3132
- run: npm test --maxWorkers=2 --maxConcurrent=2
32-
- run: npm run build
3333
- run: npm publish
3434
env:
3535
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)