Skip to content

Commit

Permalink
chore: fix noirc_abi_wasm publish for release-please (#2699)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonybur authored Sep 14, 2023
1 parent f804579 commit 8d464a6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/publish-abi_wasm.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Publish ABI Wasm

on:
push:
tags:
- "*"
workflow_dispatch:
inputs:
noir-ref:
description: The noir reference to checkout
required: true

jobs:
noirc-abi-wasm-build:
Expand All @@ -15,6 +16,9 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
repository: "noir-lang/noir"
ref: ${{ inputs.noir-ref }}

- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -39,8 +43,9 @@ jobs:
mkdir temp_publish_dir
cp -r ${{ env.BUILD_OUTPUT_PATH }}/* temp_publish_dir/
- name: Publish to NPM
- name: Publish to npm
working-directory: ./temp_publish_dir
run: npm publish
run: |
npm publish --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release-source-resolver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
working-directory: ./compiler/source-resolver
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Configure git
run: |
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,17 @@ jobs:
ref: master
token: ${{ secrets.NOIR_REPO_TOKEN }}
inputs: '{ "noir-ref": "${{ needs.release-please.outputs.tag-name }}" }'

dispatch-publish-abi-wasm:
name: Dispatch to publish-abi_wasm workflow
needs: [release-please]
if: ${{ needs.release-please.outputs.tag-name }}
runs-on: ubuntu-latest
steps:
- name: Trigger publish-abi_wasm.yml workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: publish-abi_wasm.yml
repo: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
inputs: '{ "noir-ref": "${{ needs.release-please.outputs.tag-name }}" }'

0 comments on commit 8d464a6

Please sign in to comment.