Skip to content

Commit

Permalink
Add npm publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmolnar committed Jan 30, 2022
1 parent bc6c25c commit a36aa95
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to NPM

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- run: |
yarn install
yarn build
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit a36aa95

Please sign in to comment.