Skip to content

Commit b249684

Browse files
committed
update publish script
1 parent 99889c7 commit b249684

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
8+
publish:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v1
1212
- uses: actions/setup-node@v1
1313
with:
1414
node-version: 12
15-
registry-url: https://registry.npmjs.org/
16-
- run: yarn install
17-
- run: npm publish --access public
18-
env:
19-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
15+
- run: npm install
16+
- run: npm test
17+
- uses: JS-DevTools/npm-publish@v1
18+
with:
19+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)