add publish workflow

This commit is contained in:
Dave Horton
2021-04-19 10:54:34 -04:00
parent 64fd092ae5
commit 47b13fe212

23
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: npm-publish
# run when a tag is pushed or kick off manually
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}