github action to publish to npm on tag.

This commit is contained in:
fiatjaf
2022-11-21 20:26:58 -03:00
committed by GitHub
parent 0ef5d1e19c
commit c5d2e3b037

18
.github/workflows/npm-publish.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: publish npm package
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}