From edd3d8d1ae20cb11a6a5cd86e7a2796a7fa8d4df Mon Sep 17 00:00:00 2001 From: hiento09 <136591877+hiento09@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:44:32 +0700 Subject: [PATCH] Correct tag for cortex binary build (#762) Co-authored-by: Hien To --- .github/workflows/cortex-build.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cortex-build.yml b/.github/workflows/cortex-build.yml index e7e6772d6..f901830c2 100644 --- a/.github/workflows/cortex-build.yml +++ b/.github/workflows/cortex-build.yml @@ -181,17 +181,6 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive - - - name: Install jq - uses: dcarbone/install-jq-action@v2.0.1 - - - 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/install-jq-action@v2.0.1 + + - 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