0.0.0 • Published 8 years ago

lerna-semantic-release-main v0.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

lerna-semantic-release

Status: npm version npm downloads Build Status

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.