Skip to content

Commit

Permalink
added npm release script
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Sep 5, 2022
1 parent 9458035 commit c72a3f0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/npm-release.yml
@@ -0,0 +1,21 @@
name: NPM Release

on:
push:
tags:
- 'v*.*'

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

0 comments on commit c72a3f0

Please sign in to comment.