Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/cortex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,16 @@ jobs:
with:
submodules: recursive

- name: Install jq
uses: dcarbone/install-jq-action@v2.0.1

- name: "Update version by tag"
shell: bash
run: |
cd cortex-js
# Remove the v prefix
tag_version=${GITHUB_REF#refs/tags/v}

# Replace the old version with the new version in package.json
jq --arg version "$tag_version" '.version = $version' ./package.json > /tmp/package.json && mv /tmp/package.json ./package.json

# Print the new version
echo "Updated package.json version to: $tag_version"
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