Skip to content

Commit

Permalink
Merge pull request #80 from iden3/feat/npm-publish-ci
Browse files Browse the repository at this point in the history
Add publish package ci workflow
  • Loading branch information
OBrezhniev committed Apr 15, 2024
2 parents b0cc09d + e2d6aa3 commit 7bba9c3
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 7bba9c3

Please sign in to comment.