Skip to content

Commit

Permalink
Correct tag for cortex binary build (#762)
Browse files Browse the repository at this point in the history
Co-authored-by: Hien To <[email protected]>
  • Loading branch information
hiento09 and hiento09 authored Jun 24, 2024
1 parent d9d4256 commit edd3d8d
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/cortex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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: |
Expand All @@ -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

Expand Down

0 comments on commit edd3d8d

Please sign in to comment.