👷 Add npm publish workflow

This commit is contained in:
Androz2091 2020-07-23 08:08:56 +02:00
parent 0eb6ba54d3
commit c2c7efce59

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

@ -0,0 +1,19 @@
name: Node.js Package
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}