Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: minor problems with aztec publishing #3095

Merged
merged 12 commits into from
Oct 12, 2023
14 changes: 8 additions & 6 deletions .github/workflows/publish-es-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
noir-ref:
description: The noir reference to checkout
required: false
default: 'master'
npm-tag:
description: Repository Tag to publish under
required: false
Expand All @@ -20,7 +21,7 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
ref: ${{ inputs.noir-ref || 'master' }}
ref: ${{ inputs.noir-ref }}

- name: Setup Nix
uses: ./.github/actions/nix
Expand All @@ -32,7 +33,7 @@ jobs:
- name: Enable aztec features
if: ${{ inputs.npm-tag == 'aztec' }}
run: |
echo "\ndefault = [\"aztec\"]" >> compiler/noirc_frontend/Cargo.toml
echo $'\n'"default = [\"aztec\"]"$'\n' >> compiler/noirc_frontend/Cargo.toml

- name: Build wasm package
run: |
Expand All @@ -44,7 +45,7 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
ref: ${{ inputs.noir-ref || 'master' }}
ref: ${{ inputs.noir-ref }}

- name: Setup Nix
uses: ./.github/actions/nix
Expand All @@ -63,7 +64,7 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
ref: ${{ inputs.noir-ref || 'master' }}
ref: ${{ inputs.noir-ref }}

- name: Setup Nix
uses: ./.github/actions/nix
Expand All @@ -83,7 +84,7 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
ref: ${{ inputs.noir-ref || 'master' }}
ref: ${{ inputs.noir-ref }}

- name: Setup Nix
uses: ./.github/actions/nix
Expand All @@ -98,7 +99,7 @@ jobs:
- name: Enable aztec features
if: ${{ inputs.npm-tag == 'aztec' }}
run: |
echo "\ndefault = [\"aztec\"]" >> compiler/noirc_frontend/Cargo.toml
echo $'\n'"default = [\"aztec\"]"$'\n' >> compiler/noirc_frontend/Cargo.toml

- name: Build ES Packages
run: yarn prepare:publish
Expand All @@ -109,6 +110,7 @@ jobs:
yarn nightly:version

- name: Update Version as specific tag
if: ${{ inputs.npm-tag != 'latest' }}
run: |
jq '.version = .version + "-${{ inputs.npm-tag }}"' package.json > package-tmp.json && mv package-tmp.json package.json

Expand Down