lerna-semantic-release-main
v0.0.0
Published
automated semver compliant package publishing, for lerna
Downloads
4
Maintainers
Readme
lerna-semantic-release
semantic-release for lerna-based projects.
Basically a semantic-release that orders commits based on which package they belong to (uses data from cz-lerna-changelog) and then determines on that what the next release should be.
Setup
Install cz-lerna-changelog in your repository:
npm install commitizen -g
Next, initialize your project to use the cz-lerna-changelog adapter by typing:
commitizen init cz-lerna-changelog --save-dev --save-exact
See the commitzien-cli docs for more details on how to set up commitzen with the correct adapter
Releasing
Execute these commands in your release process:
# Pre
lerna-semantic-release pre # Set up the versions, tags and commits
# Perform
lerna-semantic-release perform # Publishes to npm
# Post
lerna-semantic-release post # Generates a changelog in each package
This will publish all npm packages, including creating commits and tags for each release, in the format that lerna expects for the `lerna updated` command.