Skip to content

Commit 6a88ec1

Browse files
ijjkTimer
authored andcommitted
Make sure to exit publish script with correct code (vercel#10310)
1 parent ee9ccc8 commit 6a88ec1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

publish-release.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,23 @@ if [[ $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];
1818
then
1919
echo "Publishing canary"
2020
yarn run lerna publish from-git --npm-tag canary --yes
21+
22+
# Make sure to exit script with code 1 if publish failed
23+
if [[ ! $? -eq 0 ]];then
24+
exit 1;
25+
fi
2126
else
2227
echo "Did not publish canary"
2328
fi
2429

2530
if [[ ! $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];then
2631
echo "Publishing stable"
2732
yarn run lerna publish from-git --yes
33+
34+
# Make sure to exit script with code 1 if publish failed
35+
if [[ ! $? -eq 0 ]];then
36+
exit 1;
37+
fi
2838
else
2939
echo "Did not publish stable"
3040
fi

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy