Create publish.yml

This commit is contained in:
Adam Matthiesen 2024-01-16 00:40:22 -08:00 committed by GitHub
parent 0a9ea91c34
commit 0cb971b469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

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

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