Skip to content

Commit 2d7561f

Browse files
committed
chore: update publish script
1 parent b835a0a commit 2d7561f

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

scripts/release.sh

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

1717
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
1818

19-
if [[ $(git describe --exact-match 2> /dev/null || :) =~ -beta ]];
20-
then
21-
echo "Publishing packages"
22-
yarn run lerna publish from-git --yes # publish latest tagged commit
23-
24-
if [[ ! $? -eq 0 ]];then
25-
exit 1;
26-
fi
27-
else
28-
echo "Did not publish packages"
29-
fi
30-
3119
if [[ $(git describe --exact-match 2> /dev/null || :) =~ -alpha ]];
3220
then
3321
echo "Publishing alpha"
@@ -38,5 +26,10 @@ then
3826
exit 1;
3927
fi
4028
else
41-
echo "Did not publish alpha"
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
4235
fi

0 commit comments

Comments
 (0)