make major update actually work

remove weird special case for 0.x.x
This commit is contained in:
Nikolaus Heger
2025-11-07 14:44:55 +08:00
parent e92c4f0769
commit e0f7beef74
+3 -9
View File
@@ -96,15 +96,9 @@ jobs:
# Increment based on type
if [[ "$VERSION_TYPE" == "major" ]]; then
if [[ "$major" == "0" ]]; then # Handle 0.x.y -> 0.(x+1).0
major=$major
minor=$((minor + 1))
patch=0
else
major=$((major + 1))
minor=0
patch=0
fi
major=$((major + 1))
minor=0
patch=0
elif [[ "$VERSION_TYPE" == "minor" ]]; then
minor=$((minor + 1))
patch=0