Skip to content

Commit

Permalink
add yml script to publish to nmp. (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessgusclark authored Apr 28, 2022
1 parent 613d427 commit 6e4dd3c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/npmRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: publish

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Push package to npmjs.com
uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/

- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 6e4dd3c

Please sign in to comment.