Skip to content

Commit

Permalink
Merge pull request #104 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
Kolezhniuk authored Apr 15, 2024
2 parents 7aae4a3 + aa2d309 commit be7dbb4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 11 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}}
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "circom_runtime",
"version": "0.1.24",
"version": "0.1.25",
"description": "Circom runtime",
"type": "module",
"exports": {
Expand Down Expand Up @@ -34,7 +34,7 @@
},
"homepage": "https://github.com/iden3/circom_runtime#readme",
"dependencies": {
"ffjavascript": "0.2.63"
"ffjavascript": "0.3.0"
},
"devDependencies": {
"eslint": "^8.17.0",
Expand Down

0 comments on commit be7dbb4

Please sign in to comment.