Skip to content

Commit 57fec0f

Browse files
authored
chore(dev-tools): Add safeguard to lerna publish script (#9591)
1 parent 1b37e35 commit 57fec0f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lerna-publish.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#!/bin/bash
2+
set -e
3+
24
. .gh-token
35

6+
echo "Running yarn install..."
7+
yarn install
8+
9+
if [[ -n $(git status --porcelain) ]]; then
10+
echo "Error: the git working tree is not clean after yarn install. Please review the changes and fix it or commit."
11+
git status
12+
exit 1
13+
fi
14+
415
BUMP=$1
516
if [ "x$BUMP" == "x" ]; then
617
BUMP=patch

0 commit comments

Comments
 (0)