Skip to content

Commit

Permalink
chore: update publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong committed Nov 15, 2021
1 parent 1790434 commit 82b484c
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ fi

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

if [[ $(git describe --exact-match 2> /dev/null || :) =~ -beta ]];
then
echo "Publishing packages"
yarn run lerna publish from-git --yes # publish latest tagged commit

if [[ ! $? -eq 0 ]];then
exit 1;
fi
else
echo "Did not publish packages"
fi

if [[ $(git describe --exact-match 2> /dev/null || :) =~ -alpha ]];
then
echo "Publishing alpha"
Expand All @@ -46,5 +34,10 @@ then
exit 1;
fi
else
echo "Did not publish alpha"
echo "Publishing packages"
yarn run lerna publish from-git --yes # publish latest tagged commit

if [[ ! $? -eq 0 ]];then
exit 1;
fi
fi

0 comments on commit 82b484c

Please sign in to comment.