Skip to content

Commit 6d45413

Browse files
authored
chore(dev-scripts): Set allowed branches for lerna publishing via config (#9149)
1 parent 50bdbe7 commit 6d45413

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lerna-publish.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
#!/bin/bash
22
. .gh-token
33

4-
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
5-
if [[ "$BRANCH" != "master" ]]; then
6-
echo 'Must be run from the master branch';
7-
exit 1;
8-
fi
9-
104
BUMP=$1
115
if [ "x$BUMP" == "x" ]; then
126
BUMP=patch

lerna.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"bootstrap": {
66
"npmClient": "yarn",
77
"npmClientArgs": ["--frozen-lockfile"]
8+
},
9+
"version": {
10+
"allowBranch": ["master", "lts/*"]
811
}
912
},
1013
"$schema": "node_modules/lerna/schemas/lerna-schema.json"

0 commit comments

Comments
 (0)