Skip to content

Commit b6baded

Browse files
committed
add npm publish to workflow
1 parent 23af17a commit b6baded

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/npm-publish.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ on:
55
types: [created]
66

77
jobs:
8-
build:
8+
publish:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v3
1313
with:
1414
node-version: 16
15+
registry-url: https://registry.npmjs.org/
1516
- run: npm install --global yarn
1617
- run: yarn install --frozen-lockfile
1718
- run: yarn test
1819
- run: yarn build
19-
20+
- run: yarn publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)