Skip to content

Commit ed48492

Browse files
authored
build: migrate to bump-my-version (#222)
Signed-off-by: Phil Adams <phil_adams@us.ibm.com>
1 parent 7c8519e commit ed48492

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

.bumpversion.cfg

-18
This file was deleted.

.bumpversion.toml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[tool.bumpversion]
2+
current_version = "5.17.4"
3+
commit = true
4+
message = "Update version {current_version} -> {new_version} [skip ci]"
5+
6+
[[tool.bumpversion.files]]
7+
filename = "core/version.go"
8+
search = "__VERSION__ = \"{current_version}\""
9+
replace = "__VERSION__ = \"{new_version}\""
10+
11+
[[tool.bumpversion.files]]
12+
filename = "README.md"
13+
search = "{current_version}"
14+
replace = "{new_version}"
15+
16+
[[tool.bumpversion.files]]
17+
filename = "Authentication.md"
18+
parse = "(?P<major>\\d+)"
19+
serialize = ["{major}"]
20+
search = "v{current_version}/core"
21+
replace = "v{new_version}/core"

.releaserc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[
99
"@semantic-release/exec",
1010
{
11-
"prepareCmd": "bump2version --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch"
11+
"prepareCmd": "bump-my-version bump --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version}"
1212
}
1313
],
1414
[

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ before_deploy:
3333
- node --version
3434
- npm --version
3535
- npm install
36-
- pip install --user bump2version
36+
- pip install --user bump-my-version
3737

3838
deploy:
3939
- provider: script

0 commit comments

Comments
 (0)