Skip to content

Commit

Permalink
Merge pull request #156 from iden3/feat/add-npm-publish-ci
Browse files Browse the repository at this point in the history
Add workflow of publishing package to NPM
  • Loading branch information
OBrezhniev authored Apr 15, 2024
2 parents ca78ba5 + 55564d9 commit d0a1f5c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish package to NPM

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.IDEN3_CIRCOM_NPM_PUBLISH_TOKEN}}

0 comments on commit d0a1f5c

Please sign in to comment.