diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..20c6203 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -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}} diff --git a/package-lock.json b/package-lock.json index 878554a..2658a70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "circom_runtime", - "version": "0.1.24", + "version": "0.1.25", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "circom_runtime", - "version": "0.1.24", + "version": "0.1.25", "license": "Apache-2.0", "dependencies": { - "ffjavascript": "0.2.63" + "ffjavascript": "0.3.0" }, "bin": { "calcwit": "calcwit.js" @@ -521,9 +521,9 @@ } }, "node_modules/ffjavascript": { - "version": "0.2.63", - "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.63.tgz", - "integrity": "sha512-dBgdsfGks58b66JnUZeZpGxdMIDQ4QsD3VYlRJyFVrKQHb2kJy4R2gufx5oetrTxXPT+aEjg0dOvOLg1N0on4A==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.3.0.tgz", + "integrity": "sha512-l7sR5kmU3gRwDy8g0Z2tYBXy5ttmafRPFOqY7S6af5cq51JqJWt5eQ/lSR/rs2wQNbDYaYlQr5O+OSUf/oMLoQ==", "dependencies": { "wasmbuilder": "0.0.16", "wasmcurves": "0.2.2", @@ -1551,9 +1551,9 @@ } }, "ffjavascript": { - "version": "0.2.63", - "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.63.tgz", - "integrity": "sha512-dBgdsfGks58b66JnUZeZpGxdMIDQ4QsD3VYlRJyFVrKQHb2kJy4R2gufx5oetrTxXPT+aEjg0dOvOLg1N0on4A==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.3.0.tgz", + "integrity": "sha512-l7sR5kmU3gRwDy8g0Z2tYBXy5ttmafRPFOqY7S6af5cq51JqJWt5eQ/lSR/rs2wQNbDYaYlQr5O+OSUf/oMLoQ==", "requires": { "wasmbuilder": "0.0.16", "wasmcurves": "0.2.2", diff --git a/package.json b/package.json index ea78a84..a60a56d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "circom_runtime", - "version": "0.1.24", + "version": "0.1.25", "description": "Circom runtime", "type": "module", "exports": { @@ -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",