Skip to content

Commit

Permalink
chore: do not require version for bump.sh
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<a name="0.10.0"></a>
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.10.0](https://github.com/awslabs/aws-cdk/compare/v0.9.2...v0.10.0) (2018-09-27)

This release introduces a better way to "escape" L2 constructs in case of missing features
Expand Down
18 changes: 1 addition & 17 deletions bump.sh
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

0 comments on commit a9ae788

Please sign in to comment.