add github actions

This commit is contained in:
Dave Horton
2023-03-01 08:53:17 -05:00
parent adc54c0eb5
commit 39b4304c2b
2 changed files with 50 additions and 0 deletions
+23
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@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}