Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions lerna-publish.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
#!/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
fi
yarn lerna version --create-release=github --conventional-commits --exact $BUMP
yarn lerna version --create-release=github --conventional-commits --force-publish --exact $BUMP
6 changes: 6 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"npmClientArgs": [
"--frozen-lockfile"
]
},
"version": {
"allowBranch": [
"master",
"lts/*"
]
}
}
}
Loading