Skip to content

Commit e23047f

Browse files
committed
update pre-release script
1 parent 68d3242 commit e23047f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/publish-prerelease.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ version=${1:-'v3-prerelease'}
77

88
# Ensure git stage is clear
99
if [[ $(git status --porcelain) ]]; then
10-
echo "Your git status is not clean.";
10+
echo "Your git status is not clean. Please commit your changes before running this script.";
11+
echo "To reset all your changes, run this instead: git reset --hard HEAD"
1112
exit 1;
1213
else
1314
echo "Git status is clean. Proceeding with the script.";
@@ -23,7 +24,7 @@ echo "Running: pnpm run build --filter \"@trigger.dev/*\" --filter \"trigger.dev
2324
pnpm run build --filter "@trigger.dev/*" --filter "trigger.dev"
2425

2526
echo "Going to run: pnpm exec changeset publish --no-git-tag --snapshot --tag $version"
26-
read -p "Do you wish to continue? (Y/n): " prompt
27+
read -p "Do you wish to continue? (y/N): " prompt
2728
if [[ $prompt =~ [yY](es)* ]]; then
2829
pnpm exec changeset publish --no-git-tag --snapshot --tag $version
2930
else

0 commit comments

Comments
 (0)