Skip to content

Commit 1ea195e

Browse files
committed
add git status check before publish
1 parent c30c4df commit 1ea195e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,12 @@ jobs:
102102
else
103103
TAG=latest
104104
fi
105+
106+
if [[ "$GIT_STATUS" != "" ]]; then
107+
echo "dirty git state, aborting publish"
108+
echo "$GIT_STATUS";
109+
exit 1
110+
fi
111+
105112
# publish
106113
pnpm -r --no-bail $PUBLISH_PACKAGES_FILTER publish --no-git-checks --tag $TAG --access public

0 commit comments

Comments
 (0)