Skip to content

Commit

Permalink
add publish-npm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Sep 13, 2022
1 parent 6120b9c commit 64b13c5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish-npm.yml
@@ -0,0 +1,20 @@
name: Publish NPM package

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 64b13c5

Please sign in to comment.