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"