lerna-semantic-release-main

0.0.0 • Public • Published

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.

Package Sidebar

Install

npm i lerna-semantic-release-main

Weekly Downloads

1

Version

0.0.0

License

MIT

Last publish

Collaborators

  • atlassian-aui