Skip to content

Commit 2c9d431

Browse files
committed
chore: 🤖 add prompt before Git tag creation
[skip ci]
1 parent 3785b9a commit 2c9d431

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/quick-release.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,15 @@ yarn workspaces foreach -A --no-private npm publish
8888
echo -e "${GREEN}✓ Published to NPM${NC}\n"
8989

9090
# Step 8: Create Git tag and push to remote
91-
echo -e "${YELLOW}Step 8: Creating Git tag and pushing to remote...${NC}"
91+
echo -e "${YELLOW}Step 8: Ready to create Git tag and push to remote${NC}"
92+
read -p "Do you want to proceed with creating tag v${NEW_VERSION} and pushing a new commit to remote? (yes/no): " CONFIRM_GIT
93+
94+
if [ "$CONFIRM_GIT" != "yes" ]; then
95+
echo -e "${RED}Git tag and push cancelled by user${NC}"
96+
exit 1
97+
fi
98+
99+
echo "Creating Git tag and pushing to remote..."
92100
git add .
93101
git commit -m "chore: release v${NEW_VERSION}"
94102
git tag "v${NEW_VERSION}"

0 commit comments

Comments
 (0)