mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-18 01:11:26 +03:00
chore: add major flag to release script
This commit is contained in:
@@ -26,8 +26,22 @@ increment_version() {
|
||||
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
|
||||
if [ "$1" == "major" ]; then
|
||||
if [ "$FORCE_MAJOR" == true ]; then
|
||||
RELEASE_TYPE="major"
|
||||
else
|
||||
# Get the latest tag
|
||||
|
||||
Reference in New Issue
Block a user