Skip to content

Commit 3c540a9

Browse files
committed
when publishing a prerelease and aborting, clear the git stage
1 parent 7f05d0b commit 3c540a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/publish-prerelease.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ if [[ $prompt =~ [yY](es)* ]]; then
2828
pnpm exec changeset publish --no-git-tag --snapshot --tag $version
2929
else
3030
echo "Publish command aborted by the user."
31+
git reset --hard HEAD
3132
exit 1;
3233
fi
3334

0 commit comments

Comments
 (0)