-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add abi_wasm publishing (#2561)
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
1 parent
293dffc
commit fa016ae
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |