-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: do not require version for bump.sh
Let lerna do it's magic. Fix up CHANGELOG to adhere to Lerna's requirements.
- Loading branch information
Elad Ben-Israel
committed
Oct 10, 2018
1 parent
c231242
commit a9ae788
Showing
2 changed files
with
6 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
ver=${1:-} | ||
if [ -z "${ver}" ]; then | ||
echo "usage: ./bump.sh <version>" | ||
exit 1 | ||
fi | ||
|
||
/bin/bash ./install.sh | ||
|
||
lerna publish --force-publish=* --skip-npm --skip-git --repo-version ${ver} | ||
|
||
# Update CHANGELOG.md only at the root | ||
cat > /tmp/context.json <<HERE | ||
{ | ||
"version": "${ver}" | ||
} | ||
HERE | ||
|
||
conventional-changelog -p angular -i CHANGELOG.md -s --context /tmp/context.json | ||
lerna version --force-publish=* --no-git-tag-version --no-push --conventional-commits | ||
|