chore: add major flag to release script

This commit is contained in:
Elias Schneider
2025-05-24 23:00:33 +02:00
parent 059073d4c2
commit 2793eb4ebd

View File

@@ -26,8 +26,22 @@ increment_version() {
echo "${parts[0]}.${parts[1]}.${parts[2]}" echo "${parts[0]}.${parts[1]}.${parts[2]}"
} }
# Parse command line arguments
FORCE_MAJOR=false
for arg in "$@"; do
case $arg in
--major)
FORCE_MAJOR=true
shift
;;
*)
# Unknown option
;;
esac
done
# Determine the release type # Determine the release type
if [ "$1" == "major" ]; then if [ "$FORCE_MAJOR" == true ]; then
RELEASE_TYPE="major" RELEASE_TYPE="major"
else else
# Get the latest tag # Get the latest tag