We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee9ccc8 commit 6a88ec1Copy full SHA for 6a88ec1
publish-release.sh
@@ -18,13 +18,23 @@ if [[ $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];
18
then
19
echo "Publishing canary"
20
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
26
else
27
echo "Did not publish canary"
28
fi
29
30
if [[ ! $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];then
31
echo "Publishing stable"
32
yarn run lerna publish from-git --yes
33
34
35
36
37
38
39
echo "Did not publish stable"
40
0 commit comments