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

Commit 6c98e04

Browse files
authored
fix: update cortex package.json version (#760)
1 parent dc83b7d commit 6c98e04

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/cortex-build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,18 @@ jobs:
181181
uses: actions/checkout@v3
182182
with:
183183
submodules: recursive
184+
185+
- name: "Update version by tag"
186+
run: |
187+
cd cortex-js
188+
# Remove the v prefix
189+
tag_version=${GITHUB_REF#refs/tags/v}
190+
191+
# Replace the old version with the new version in package.json
192+
jq --arg version "$tag_version" '.version = $version' ./package.json > /tmp/package.json && mv /tmp/package.json ./package.json
193+
194+
# Print the new version
195+
echo "Updated package.json version to: $tag_version"
184196
185197
- uses: actions/setup-dotnet@v3
186198
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)