From 0b1fab5b08e79e12d140139c14be47b069bec424 Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Thu, 27 Nov 2025 16:45:32 +0800 Subject: [PATCH] script: Push both change and tag to remote --- script/bump-version.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/bump-version.sh b/script/bump-version.sh index 9dcb4df9..c9eb3621 100755 --- a/script/bump-version.sh +++ b/script/bump-version.sh @@ -91,12 +91,12 @@ fi echo "" # Step 4: Push to remote -log_step "4/4" "Pushing tag to remote" -log_info "Pushing ${BOLD}v$new_version${RESET} to origin..." -if git push origin "v$new_version"; then - log_success "Tag pushed to remote successfully" +log_step "4/4" "Pushing changes and tag to remote" +log_info "Pushing changes and ${BOLD}v$new_version${RESET} to origin..." +if git push origin HEAD && git push origin "v$new_version"; then + log_success "Changes and tag pushed to remote successfully" else - log_error "Failed to push tag to remote" + log_error "Failed to push changes or tag to remote" exit 1 fi echo ""