v0.0.12 - Fix release flow: always increment version in -r mode; include startup confirmations and latest-version installer behavior

This commit is contained in:
Laan Tungir
2026-05-04 07:21:30 -04:00
parent 3efb0edb61
commit ae95ae6859
2 changed files with 3 additions and 9 deletions

View File

@@ -244,13 +244,7 @@ main() {
check_git_repo
if [[ "$RELEASE_MODE" == true ]]; then
if [[ "$VERSION_INCREMENT_EXPLICIT" == true ]]; then
increment_version "$VERSION_INCREMENT_TYPE"
else
LATEST_TAG=$(git tag -l 'v*.*.*' | sort -V | tail -n 1 || echo "v0.0.1")
NEW_VERSION="$LATEST_TAG"
export NEW_VERSION
fi
increment_version "$VERSION_INCREMENT_TYPE"
if git tag "$NEW_VERSION" > /dev/null 2>&1; then
print_success "Created tag: $NEW_VERSION"