-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tf/split-build-and-test' into tf/yarn-caching
* tf/split-build-and-test: chore: remove reference to `result` directory chore!: Change `noir-lang/noir-source-resolver` to `noir-lang/source-resolver` (#2718) chore: clippy fixes (#2719) chore: fix version querying chore: nits chore(ci): fix playwright caching chore: pass full `package.json` into build artifact chore: clean up straggler `packageManager` chore: remove `packageManager" fields from workspace packages chore: refresh lockfile Update .github/workflows/abi_wasm.yml chore: split build and tests jobs in `abi_wasm.yml` chore: Integrate noir.js into workspace and CI release workflow (#2705) feat: Add initial version of noir.js (#2681) chore: switch `release-source-resolver.yml` to use yarn (#2704) chore: move stranded test to correct directory (#2701) chore(ci): deny wildcard dependencies (#2702) chore: fix `noirc_abi_wasm` publish for release-please (#2699)
- Loading branch information
Showing
50 changed files
with
380 additions
and
219 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,52 @@ | ||
name: Release and Publish Noir Js | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release-noir-js: | ||
name: Release and Publish Noir Js | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Install jq | ||
run: sudo apt-get install jq | ||
|
||
- name: Install cargo and wasm-bindgen | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
source $HOME/.cargo/env | ||
cargo install -f wasm-bindgen-cli --version 0.2.86 | ||
- name: Install toml2json | ||
run: | | ||
source $HOME/.cargo/env | ||
cargo install toml2json | ||
- name: Install wasm-opt | ||
run: | | ||
npm i wasm-opt -g | ||
- name: Install wasm32-unknown-unknwown target | ||
run: | | ||
rustup target add wasm32-unknown-unknown | ||
- name: Build noirc_abi | ||
run: yarn workspace @noir-lang/noirc_abi build | ||
|
||
- name: Build noir_js | ||
run: yarn workspace @noir-lang/noir_js build | ||
|
||
- name: Authenticate with npm | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
|
||
- name: Publish to NPM | ||
working-directory: ./tooling/noir_js | ||
run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
|
@@ -2,10 +2,6 @@ name: Release and Publish Source Resolver | |
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Version number" | ||
required: false | ||
|
||
jobs: | ||
release-source-resolver: | ||
|
@@ -15,39 +11,14 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Bump version | ||
working-directory: ./compiler/source-resolver | ||
id: bump_version | ||
run: | | ||
if [ -z "${{ github.event.inputs.version }}" ]; then | ||
NEW_VERSION=$(npm version patch --no-git-tag-version) | ||
else | ||
NEW_VERSION=$(npm version ${{ github.event.inputs.version }} --no-git-tag-version) | ||
fi | ||
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV | ||
- name: Install dependencies | ||
working-directory: ./compiler/source-resolver | ||
run: npm install | ||
run: yarn install --immutable | ||
|
||
- name: Build noir-source-resolver | ||
working-directory: ./compiler/source-resolver | ||
run: npm run build | ||
run: yarn workspace @noir-lang/source-resolver build | ||
|
||
- name: Publish to NPM | ||
working-directory: ./compiler/source-resolver | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
- name: Configure git | ||
run: | | ||
git config user.name kevaundray | ||
git config user.email [email protected] | ||
- name: Commit updates | ||
run: | | ||
git add compiler/source-resolver/package-lock.json | ||
git add compiler/source-resolver/package.json | ||
git commit -m "chore: Update source-resolver to ${{ env.NEW_VERSION }}" | ||
git push | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.