Skip to content

Commit

Permalink
build: use conventional commit message for bumpversion
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobuikhuizen committed Aug 30, 2023
1 parent 5ca39d9 commit 48562f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[bumpversion]
current_version = 1.9.2
commit = True
message = "chore: bump version: {current_version} → {new_version}"
tag = True
parse = (?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d+))((?P<release>.)(?P<build>\d+))?
serialize =
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e -o pipefail
# usage: ./release minor -n
version=$(bump2version --dry-run --list $* | grep new_version | sed -r s,"^.*=",,)
version=$(bump2version --dry-run --list $* | grep new_version= | sed -r s,"^.*=",,)
echo Version tag v$version
bumpversion $* --verbose && git push upstream master v$version

0 comments on commit 48562f5

Please sign in to comment.