Skip to content

Commit

Permalink
chore(dev-scripts): set allowed branches for lerna publishing via config
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon committed Jan 27, 2025
1 parent bb86016 commit 3132f3d
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 3132f3d

Please sign in to comment.