feat: Update publish script to handle existing tags gracefully and improve user feedback

This commit is contained in:
Nawaz Dhandala 2025-12-15 12:41:02 +00:00
parent 9d95232e69
commit 2c7d3562f6
No known key found for this signature in database
GPG key ID: 96C5DCA24769DBCA

View file

@ -412,9 +412,11 @@ Changes include:
if [[ "$FORCE" == true ]]; then
print_warning "Tag v$VERSION exists on remote, force mode enabled - will overwrite"
else
print_error "Tag v$VERSION already exists on remote repository"
print_error "Use --force flag to overwrite, or choose a different version"
exit 1
print_warning "Tag v$VERSION already exists on remote repository"
print_warning "Skipping publishing as this version has already been published"
print_status "Use --force flag to overwrite if needed"
# Exit gracefully - this is not an error, just means the version was already published
exit 0
fi
fi