Skip to content

Commit

Permalink
Merge pull request #71 from klever-io/fix-npm-package-version-script
Browse files Browse the repository at this point in the history
fix: npm package version sh
  • Loading branch information
brunocampos-ssa authored Sep 11, 2024
2 parents 12c2404 + 02fd8f0 commit 8f032e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/npm-package-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ CURRENT_VERSION="${CURRENT_VERSION}"

echo "Release dev ${CURRENT_VERSION}"

# change version in Cargo.toml
eval "sed -i '6s/.*/ \"version\": \"${CURRENT_VERSION}\",/' demo/kos/package.json"
# change version in package.json using jq
jq --arg version "$CURRENT_VERSION" '.version = $version' demo/kos/package.json > tmp.$$.json && mv tmp.$$.json demo/kos/package.json

0 comments on commit 8f032e7

Please sign in to comment.