-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct tag for cortex binary build (#762)
Co-authored-by: Hien To <[email protected]>
- Loading branch information
Showing
1 changed file
with
17 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,17 +181,6 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install jq | ||
uses: dcarbone/[email protected] | ||
|
||
- name: "Update version by tag" | ||
shell: bash | ||
run: | | ||
echo "Version: ${{ inputs.new_version }}" | ||
# Update the version in package.json | ||
jq --arg version "${{ inputs.new_version }}" '.version = $version' package.json > /tmp/package.json | ||
mv /tmp/package.json package.json | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
if: runner.os == 'Windows' | ||
|
@@ -308,6 +297,23 @@ jobs: | |
with: | ||
dotnet-version: "8.0.x" | ||
|
||
- name: Install jq | ||
uses: dcarbone/[email protected] | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20.x" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: "Update version by tag" | ||
working-directory: cortex-js | ||
shell: bash | ||
run: | | ||
echo "Version: ${{ needs.create-draft-release.outputs.version }}" | ||
# Update the version in package.json | ||
jq --arg version "${{ needs.create-draft-release.outputs.version }}" '.version = $version' package.json > /tmp/package.json | ||
mv /tmp/package.json package.json | ||
- name: Install choco on Windows | ||
if: runner.os == 'Windows' | ||
run: | | ||
|
@@ -318,8 +324,6 @@ jobs: | |
node-version: "20.x" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- run: npm install -g yarn | ||
|
||
- run: yarn install && yarn build && yarn build:binary | ||
working-directory: ./cortex-js | ||
|
||
|