From 6d45413c5014cc17b910997a8431efe9ecc7790e Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Tue, 28 Jan 2025 14:10:18 +0200 Subject: [PATCH] =?UTF-8?q?chore(dev-scripts):=20Set=20allowed=20branches?= =?UTF-8?q?=20for=C2=A0lerna=20publishing=20via=20config=20(#9149)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lerna-publish.sh | 6 ------ lerna.json | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lerna-publish.sh b/lerna-publish.sh index 896f91cdd59c7..c01bee96c899b 100755 --- a/lerna-publish.sh +++ b/lerna-publish.sh @@ -1,12 +1,6 @@ #!/bin/bash . .gh-token -BRANCH="$(git rev-parse --abbrev-ref HEAD)" -if [[ "$BRANCH" != "master" ]]; then - echo 'Must be run from the master branch'; - exit 1; -fi - BUMP=$1 if [ "x$BUMP" == "x" ]; then BUMP=patch diff --git a/lerna.json b/lerna.json index fb66cf66e942f..d0a112c36ba06 100644 --- a/lerna.json +++ b/lerna.json @@ -5,6 +5,9 @@ "bootstrap": { "npmClient": "yarn", "npmClientArgs": ["--frozen-lockfile"] + }, + "version": { + "allowBranch": ["master", "lts/*"] } }, "$schema": "node_modules/lerna/schemas/lerna-schema.json"