0.1.1 • Published 2 years ago
@akryum/gen-changelog v0.1.1
gen-changelog
Opinionated CLI command to update CHANGELOG.md.
yarn add -WD @akryum/gen-changelog
Assumed:
- Git repository
- Monorepo
- Lerna setup
- Tags with
vX.Y.Z
format - All tags are fetched locally
CHANGELOG.md
exists (init it withyarn conventional-changelog -p angular -o CHANGELOG.md -r 0
)- You run
lerna publish
before using it
What it does:
- Update the root
package.json
version - Update the
CHANGELOG.md
file with the latest changes - Push the changelog change with
chore: changelog
commit message
Usage:
{
"scripts": {
"release": "yarn run build && yarn run test && lerna publish && changelog generate"
}
}