Skip to content

Commit

Permalink
chore: use npm changelog in release script (#4698)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing authored May 12, 2022
1 parent b0366c6 commit 43fcb01
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tool/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ git --no-pager log --color --first-parent --oneline v$CUR_VERSION..master |
echo "current version is $CUR_VERSION"

# get new version number
VERSION_NUM=;
until [[ "$VERSION_NUM" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] ; do
read -p "enter version number for the build " VERSION_NUM
done
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

# update version number everywhere
node -e "
Expand Down

0 comments on commit 43fcb01

Please sign in to comment.