Skip to content

Commit

Permalink
chore(dev-scripts): Set allowed branches for lerna publishing via con…
Browse files Browse the repository at this point in the history
…fig (#9149)
  • Loading branch information
KSDaemon authored Jan 28, 2025
1 parent 50bdbe7 commit 6d45413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lerna-publish.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"bootstrap": {
"npmClient": "yarn",
"npmClientArgs": ["--frozen-lockfile"]
},
"version": {
"allowBranch": ["master", "lts/*"]
}
},
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
Expand Down

0 comments on commit 6d45413

Please sign in to comment.