Skip to content

Commit

Permalink
chore: add abi_wasm publishing (#2561)
Browse files Browse the repository at this point in the history
Co-authored-by: TomAFrench <[email protected]>
Co-authored-by: Koby <[email protected]>
Co-authored-by: kevaundray <[email protected]>
Co-authored-by: Tom French <[email protected]>
Co-authored-by: Koby Hall <[email protected]>
  • Loading branch information
6 people authored Sep 7, 2023
1 parent 293dffc commit fa016ae
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/abi_wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
uses: ./.github/actions/setup
with:
working-directory: ./crates/noirc_abi_wasm

- name: Run node tests
working-directory: ./crates/noirc_abi_wasm
run: yarn test
Expand All @@ -110,7 +110,7 @@ jobs:
uses: ./.github/actions/setup
with:
working-directory: ./crates/noirc_abi_wasm

- name: Install playwright deps
working-directory: ./crates/noirc_abi_wasm
run: |
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/release-abi_wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release ABI Wasm

on:
workflow_dispatch:

jobs:
noirc-abi-wasm-build:
runs-on: ubuntu-latest
env:
CACHED_PATH: /tmp/nix-cache

steps:
- name: Checkout sources
uses: actions/checkout@v3

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

- name: Build noirc_abi_wasm
run: |
nix build -L .#noirc_abi_wasm
- 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 }}

0 comments on commit fa016ae

Please sign in to comment.