Skip to content

Commit

Permalink
chore: allow custom version number release script (#5699)
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Koreman <[email protected]>
  • Loading branch information
akoreman and Alice Koreman authored Dec 17, 2024
1 parent fcf6384 commit 713abb6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tool/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ git checkout -- package.json
git checkout -- CHANGELOG.md
npm run changelog
VERSION_NUM="$(node -p "require('./package.json').version")";
echo "version number for the build is" $VERSION_NUM
echo "recommended version number for the build is" $VERSION_NUM

read -p "do you want to continue with the recommended version number? [y/n] " yn

if [[ $yn == "n" ]]; then
read -p "what should the new version be? (Example: 1.2.3) " VERSION_NUM
fi

# update version number everywhere
node -e "
Expand All @@ -77,7 +83,7 @@ node -e "
update('./src/config.js');
"

pause "versions updated. do you want to start build script? [y/n]"
pause "versions updated to $VERSION_NUM. do you want to start build script? [y/n]"

node Makefile.dryice.js full
cd build
Expand Down

0 comments on commit 713abb6

Please sign in to comment.