Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit edd3d8d

Browse files
authored
Correct tag for cortex binary build (#762)
Co-authored-by: Hien To <tominhhien97@gmail.com>
1 parent d9d4256 commit edd3d8d

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/cortex-build.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,6 @@ jobs:
181181
uses: actions/checkout@v3
182182
with:
183183
submodules: recursive
184-
185-
- name: Install jq
186-
uses: dcarbone/install-jq-action@v2.0.1
187-
188-
- name: "Update version by tag"
189-
shell: bash
190-
run: |
191-
echo "Version: ${{ inputs.new_version }}"
192-
# Update the version in package.json
193-
jq --arg version "${{ inputs.new_version }}" '.version = $version' package.json > /tmp/package.json
194-
mv /tmp/package.json package.json
195184

196185
- uses: actions/setup-dotnet@v3
197186
if: runner.os == 'Windows'
@@ -308,6 +297,23 @@ jobs:
308297
with:
309298
dotnet-version: "8.0.x"
310299

300+
- name: Install jq
301+
uses: dcarbone/install-jq-action@v2.0.1
302+
303+
- uses: actions/setup-node@v3
304+
with:
305+
node-version: "20.x"
306+
registry-url: "https://registry.npmjs.org"
307+
308+
- name: "Update version by tag"
309+
working-directory: cortex-js
310+
shell: bash
311+
run: |
312+
echo "Version: ${{ needs.create-draft-release.outputs.version }}"
313+
# Update the version in package.json
314+
jq --arg version "${{ needs.create-draft-release.outputs.version }}" '.version = $version' package.json > /tmp/package.json
315+
mv /tmp/package.json package.json
316+
311317
- name: Install choco on Windows
312318
if: runner.os == 'Windows'
313319
run: |
@@ -318,8 +324,6 @@ jobs:
318324
node-version: "20.x"
319325
registry-url: "https://registry.npmjs.org"
320326

321-
- run: npm install -g yarn
322-
323327
- run: yarn install && yarn build && yarn build:binary
324328
working-directory: ./cortex-js
325329

0 commit comments

Comments
 (0)