-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add noir-source-resolver (#2485)
- Loading branch information
Showing
16 changed files
with
3,603 additions
and
10 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,53 @@ | ||
name: Release and Publish Source Resolver | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Version number" | ||
required: false | ||
|
||
jobs: | ||
release-source-resolver: | ||
name: Release and Publish Source Resolver | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Bump version | ||
working-directory: ./crates/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: ./crates/source-resolver | ||
run: npm install | ||
|
||
- name: Build noir-source-resolver | ||
working-directory: ./crates/source-resolver | ||
run: npm run build | ||
|
||
- name: Publish to NPM | ||
working-directory: ./crates/source-resolver | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Configure git | ||
run: | | ||
git config user.name kevaundray | ||
git config user.email [email protected] | ||
- name: Commit updates | ||
run: | | ||
git add crates/source-resolver/package-lock.json | ||
git add crates/source-resolver/package.json | ||
git commit -m "chore: Update source-resolver to ${{ env.NEW_VERSION }}" | ||
git push |
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,29 @@ | ||
name: Test Source Resolver | ||
|
||
on: | ||
push: | ||
paths: | ||
- "crates/source-resolver/**" | ||
pull_request: | ||
paths: | ||
- "crates/source-resolver/**" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
working-directory: ./crates/source-resolver | ||
run: npm install | ||
|
||
- name: Build noir-source-resolver | ||
working-directory: ./crates/source-resolver | ||
run: npm run build | ||
|
||
- name: Run tests | ||
working-directory: ./crates/source-resolver | ||
run: npm run test |
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.