Skip to content

Commit

Permalink
move --dist-tag next to publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerbenw committed Oct 31, 2023
1 parent 31276d4 commit b2a8715
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,7 @@ WORKER_PACKAGE_CHANGED=$(npx lerna changed --parseable | grep -c packages/web-wo

# increment package version numbers
if [ -z "${RETRY_PUBLISH:-}" ]; then
case $VERSION in
"prerelease" | "prepatch" | "preminor" | "premajor")
npx lerna version "$VERSION" --dist-tag next --no-push
;;

*)
npx lerna version "$VERSION" --no-push
;;
esac
npx lerna version "$VERSION" --no-push
fi

# build packages
Expand All @@ -58,10 +50,18 @@ npx lerna run build \
git push origin --follow-tags

# publish
if [ -z "${RETRY_PUBLISH:-}" ]; then
npx lerna publish from-git
else
if [ -v RETRY_PUBLISH ]; then
npx lerna publish from-package
else
case $VERSION in
"prerelease" | "prepatch" | "preminor" | "premajor")
npx lerna publish from-git --dist-tag next
;;

*)
npx lerna publish from-git
;;
esac
fi

if [ "$BROWSER_PACKAGE_CHANGED" -eq 1 ] || [ -v FORCE_CDN_UPLOAD ]; then
Expand Down

0 comments on commit b2a8715

Please sign in to comment.