Skip to content

Commit 82b484c

Browse files
committed
chore: update publish script
1 parent 1790434 commit 82b484c

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

scripts/publish.sh

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ fi
2424

2525
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
2626

27-
if [[ $(git describe --exact-match 2> /dev/null || :) =~ -beta ]];
28-
then
29-
echo "Publishing packages"
30-
yarn run lerna publish from-git --yes # publish latest tagged commit
31-
32-
if [[ ! $? -eq 0 ]];then
33-
exit 1;
34-
fi
35-
else
36-
echo "Did not publish packages"
37-
fi
38-
3927
if [[ $(git describe --exact-match 2> /dev/null || :) =~ -alpha ]];
4028
then
4129
echo "Publishing alpha"
@@ -46,5 +34,10 @@ then
4634
exit 1;
4735
fi
4836
else
49-
echo "Did not publish alpha"
37+
echo "Publishing packages"
38+
yarn run lerna publish from-git --yes # publish latest tagged commit
39+
40+
if [[ ! $? -eq 0 ]];then
41+
exit 1;
42+
fi
5043
fi

0 commit comments

Comments
 (0)