You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default configuration only allows bumping the major, minor, or patch version. What if you wanted to support pre-release versions?
92
91
92
+
### Get the new version in a script
93
+
94
+
If you want to get the new version within a script, you can use the [`show`](https://callowayproject.github.io/bump-my-version/reference/cli/#bump-my-version-show) method.
95
+
96
+
```console title="Extract the new version"
97
+
$ bump-my-version show current_version
98
+
1.2.3
99
+
$ bump-my-version show --increment minor new_version
100
+
1.3.3
101
+
```
102
+
103
+
93
104
### Add support for pre-release versions
94
105
95
106
Alter the `parse` configuration to support pre-release versions. This `parse` option uses an extended (or verbose) regular expression to extract the version components from the current version.
0 commit comments