Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexaka1 committed Jul 7, 2024
1 parent 67106b6 commit 62a886b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CSPROJ_PATH="$2"
PACKAGE_NAME="$3"

set -xe
yarn run version
yarn run changeset:version
VERSION=$(jq -r '.version' "$PACKAGE_JSON_PATH")
sed -i "s#<VersionPrefix>.*</VersionPrefix>#<VersionPrefix>$VERSION</VersionPrefix>#" "$CSPROJ_PATH"
AVAILABLE_VERSIONS=$(curl -s "https://api.nuget.org/v3-flatcontainer/$PACKAGE_NAME/index.json" | jq -r '.versions[]')
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"scripts": {
"changeset": "changeset",
"changeset:version": "changeset version",
"version": "bash ./build/version.sh"
},
"workspaces": [
Expand Down

0 comments on commit 62a886b

Please sign in to comment.