Skip to content

Commit

Permalink
update release script to run changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Mar 30, 2021
1 parent b2afa24 commit ef83f24
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/sh
set -e
set -eu

bumpversion release --tag
bumpversion patch
git push --follow-tags
before=$(git rev-parse HEAD)
auto-changelog -v $VERSION
pre-commit run --files CHANGELOG.md || true
git add CHANGELOG.md
git commit -m "changelog for $VERSION"
bump2version release --tag --commit --new-version $VERSION
bump2version patch
git diff $before $VERSION
echo "git push --follow-tags"

0 comments on commit ef83f24

Please sign in to comment.