diff --git a/release.sh b/release.sh index 278a64d..67bf8a4 100755 --- a/release.sh +++ b/release.sh @@ -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"