-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
We should be able to use this configuration for bumpversion to properly work with a -snapshot
suffix without the need for semver:
[bumpversion]
current_version = 0.2.2-snapshot
search = version: {current_version}
replace = version: {new_version}
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>snapshot))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}
[bumpversion:part:release]
first_value = snapshot
optional_value = release
values =
snapshot
release
Then bumpversion release
always removes the suffix and bumpversion major
, bumpversion minor
and bumpversion patch
always add it. In order to do a major or minor release 2 bumpversion commands can be chained then:
bumpversion release
bumpversion major/bumpversion minor
Notes
- https://github.com/bakdata/ci-templates/blob/3e9f4cf08c94a48abba29c50f2c67aeb040f7e1d/.github/workflows/release-tag-versions.yaml check where this is used and remove it if applciable
- https://github.com/bakdata/ci-templates/blob/3e9f4cf08c94a48abba29c50f2c67aeb040f7e1d/.github/workflows/release-tag-versions.yaml check where used and if it can be replaced -> find a propper arugument to unify the release action
Metadata
Metadata
Assignees
Labels
No labels