Description
Increments the provided semver version with the given action.
Usage
bump_semver <semver string> <action>
semver string
is the semver version to be incrementedaction
is the type of increment to be applied
The valid actions are:
major: Increment the major version. The minor and patch versions are reset to 0.
minor: Increment the minor version. The patch version is reset to 0.
patch: Increment the patch version.
alpha: Increment or add an
alpha
pre-release tag. For example,v1.1.1
becomesv1.1.1-alpha
andv1.1.1-alpha
becomesv1.1.1-alpha.1
. Any other pre-release tags will be removed.beta: Increment or add a
beta
pre-release tag. For example,v1.1.1
becomesv1.1.1-beta
andv1.1.1-beta
becomesv1.1.1-beta.1
. Any other pre-release tags will be removed.rc: Increment or add an
rc
pre-release tag. For example,v1.1.1
becomesv1.1.1-rc
andv1.1.1-rc
becomesv1.1.1-rc.1
. Any other pre-release tags will be removed.final: Remove any pre-release tags, leaving
major.minor.patch
.