Skip to content

Commit 8942086

Browse files
authored
build: migrate to bump-my-version (#267)
Signed-off-by: Phil Adams <[email protected]>
1 parent 7141979 commit 8942086

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 16 deletions
This file was deleted.

.bumpversion.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[tool.bumpversion]
2+
current_version = "0.55.1"
3+
commit = true
4+
message = "Update version {current_version} -> {new_version}"
5+
6+
[[tool.bumpversion.files]]
7+
filename = "ibm_platform_services/version.py"
8+
search = "__version__ = '{current_version}'"
9+
replace = "__version__ = '{new_version}'"
10+
11+
[[tool.bumpversion.files]]
12+
filename = "setup.py"
13+
search = "__version__ = '{current_version}'"
14+
replace = "__version__ = '{new_version}'"
15+
16+
[[tool.bumpversion.files]]
17+
filename = "README.md"
18+
search = "{current_version}"
19+
replace = "{new_version}"

.releaserc

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ before_deploy:
2525
- node --version
2626
- npm --version
2727
- npm install
28-
- pip install bump2version
28+
- pip install bump-my-version
2929

3030
deploy:
3131
- provider: script

0 commit comments

Comments
 (0)