Skip to content

Commit 63248b4

Browse files
authored
Update npm-publish.yml
1 parent 5d33d01 commit 63248b4

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,19 @@ on:
88
types: [created]
99

1010
jobs:
11-
build:
11+
publish:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3
1616
with:
17+
registry-url: https://registry.npmjs.org/
1718
node-version: 16
18-
- run: npm i --force
19+
cache: 'yarn'
20+
- run: yarn
1921
- run: npm run build
20-
21-
publish-npm:
22-
needs: build
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v3
26-
- uses: actions/setup-node@v3
27-
with:
28-
node-version: 16
29-
registry-url: https://registry.npmjs.org/
3022
- run: ls dist
3123
- run: npm publish
3224
env:
3325
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
26+

0 commit comments

Comments
 (0)