Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
chore: acvm_js publishing (#529)
Browse files Browse the repository at this point in the history
Co-authored-by: Koby Hall <[email protected]>
  • Loading branch information
jonybur and kobyhallx authored Sep 8, 2023
1 parent d40a10e commit 32597fa
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 15 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish-acvm-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish acvm_js

on:
push:
tags:
- "acvm_js-v*"

jobs:
build-acvm-js-package:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-23.05
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: cachix/cachix-action@v12
with:
name: barretenberg
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

- name: Build acvm-js
run: |
nix build .#
- name: Discover Build Output Path
run: echo "BUILD_OUTPUT_PATH=$(readlink -f ./result)" >> $GITHUB_ENV

- name: Copy Build Output to Temporary Directory
run: |
mkdir temp_publish_dir
cp -r ${{ env.BUILD_OUTPUT_PATH }}/* temp_publish_dir/
- name: Publish to NPM
working-directory: ./temp_publish_dir
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 0 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,3 @@ jobs:
workflow: publish.yml
ref: master
inputs: '{ "acvm-ref": "${{ needs.release-please.outputs.tag-name }}" }'

dispatch-acvm-js-wasm:
name: Dispatch to acvm-js-wasm
needs: [release-please]
if: ${{ needs.release-please.outputs.tag-name }}
runs-on: ubuntu-latest
steps:
- name: Dispatch to acvm-js-wasm
uses: benc-uk/workflow-dispatch@v1
with:
workflow: update.yml
repo: noir-lang/acvm-js-wasm
token: ${{ secrets.ACVM_JS_RELEASES_TOKEN }}
inputs: '{ "acvm-js-ref": "${{ needs.release-please.outputs.tag-name }}" }'

0 comments on commit 32597fa

Please sign in to comment.