Bugfix initialization of new version when we aren't bumping major/minor/patch

This commit is contained in:
Ray Miller 2023-05-10 15:04:49 +01:00
parent 88ad9ec55c
commit 6948f596fe

View file

@ -132,6 +132,8 @@ func nextVersion(inc string) func(*cli.Context) error {
newVer = v.IncMinor() newVer = v.IncMinor()
case "major": case "major":
newVer = v.IncMajor() newVer = v.IncMajor()
default:
newVer = *v
} }
} }
if c.IsSet("pre-release") { if c.IsSet("pre-release") {