Skip to content

Commit e675f27

Browse files
committed
refine npm publish workflow
1 parent 0d7e8db commit e675f27

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,16 @@ on:
55
types: [created]
66

77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v2
13-
with:
14-
node-version: 16
15-
- run: npm test
16-
178
publish-npm:
18-
needs: build
199
runs-on: ubuntu-latest
2010
steps:
2111
- uses: actions/checkout@v2
2212
- uses: actions/setup-node@v2
2313
with:
2414
node-version: 16
2515
registry-url: https://registry.npmjs.org/
26-
- run: npm publish
16+
- run: |
17+
npm test
18+
npm publish
2719
env:
2820
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)