Skip to content

Commit

Permalink
[TASK] add github action for publish-npm
Browse files Browse the repository at this point in the history
  • Loading branch information
dmh committed Jan 5, 2023
1 parent acabe00 commit d8a95e6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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
cache: 'npm'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

0 comments on commit d8a95e6

Please sign in to comment.