Skip to content

Commit 7042d54

Browse files
authored
autodeploy to npm
1 parent 75e8a04 commit 7042d54

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,18 @@ jobs:
2828
- run: npm ci
2929
- run: npm run build --if-present
3030
- run: npm test
31+
32+
publish-npm:
33+
needs: build
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v3
37+
- uses: actions/setup-node@v3
38+
with:
39+
node-version: 16
40+
registry-url: https://registry.npmjs.org/
41+
- run: npm ci
42+
- run: npm publish
43+
env:
44+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
45+

0 commit comments

Comments
 (0)