Fixed version bumping

Summary: Fixed version bumping in prepare-release script

Reviewed By: priteshrnandgaonkar

Differential Revision: D20771162

fbshipit-source-id: 8b8efa7111269e3f2b39b09c3dff1afe1fd0cf41
This commit is contained in:
Anton Nikolaev
2020-03-31 11:18:40 -07:00
committed by Facebook GitHub Bot
parent 4e3c06cd54
commit 2a27b47752

View File

@@ -59,7 +59,7 @@ if [ "$SANDCASTLE_REVISION" != "" ];
then then
# In future, bump majors instead of minors? # In future, bump majors instead of minors?
echo "Automatically bumping version to next minor in package.json" echo "Automatically bumping version to next minor in package.json"
yarn --cwd "$DESKTOP_DIR" version minor --no-git-tag-version npm -C "$DESKTOP_DIR" version minor
VERSION=$(jq -r '.version' "$DESKTOP_DIR"/package.json) VERSION=$(jq -r '.version' "$DESKTOP_DIR"/package.json)
else else
echo "The currently released version is $OLD_VERSION. What should the version of the next release be?" echo "The currently released version is $OLD_VERSION. What should the version of the next release be?"