Skip to content

Commit

Permalink
build: extract correct version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Sep 27, 2024
1 parent 10996ab commit 42e9de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync-version.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION=$(grep '"version"' package.json | sed -E 's/.*"version": "([0-9]+\.[0-9]+\.[0-9]+)".*/\1/')
VERSION=$(jq -r '.version' package.json)
jq --arg version "$VERSION" '.packageVersion = $version' config.json > temp.json && mv temp.json config.json

0 comments on commit 42e9de6

Please sign in to comment.