Skip to content

Commit

Permalink
build(changelog): 🦺 Ask if we're ok before making git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Jun 1, 2024
1 parent 21bccbb commit 3e3e457
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ hpack || exit 1
git cliff --tag "${new_version}" > CHANGELOG.md
git add -A && git commit -m "chore(release): prepare for ${new_version}"
git show || exit 1
read -p "Is this ok? " -n 1 -r
echo # (optional) move to a new line
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1 # handle exits from shell or function but don't exit interactive shell
fi

# generate a changelog for the tag message
export GIT_CLIFF_TEMPLATE="\
Expand Down

0 comments on commit 3e3e457

Please sign in to comment.