From 6dec77741f1e16c3d3027cdeb27e957a027fe172 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Tue, 31 Oct 2023 13:45:33 +0000 Subject: [PATCH] move --dist-tag next to publish command --- bin/release.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/release.sh b/bin/release.sh index c78cc7ade8..9ff31dc573 100755 --- a/bin/release.sh +++ b/bin/release.sh @@ -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 @@ -59,7 +51,15 @@ git push origin --follow-tags # publish if [ -z "${RETRY_PUBLISH:-}" ]; then - npx lerna publish from-git + case $VERSION in + "prerelease" | "prepatch" | "preminor" | "premajor") + npx lerna publish from-git --dist-tag next + ;; + + *) + npx lerna publish from-git + ;; + esac else npx lerna publish from-package fi