File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,15 @@ yarn workspaces foreach -A --no-private npm publish
8888echo -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..."
92100git add .
93101git commit -m " chore: release v${NEW_VERSION} "
94102git tag " v${NEW_VERSION} "
You can’t perform that action at this time.
0 commit comments