4. Versioning, Publishing, and Configuring lerna.json for Commit Conventions

2 min read

exile.watch logo

This page is part of The toolkit I needed to make it all happen list - 4/7


Lernaarrow-up-right simplifies life with its all-in-one versioning and publishing capabilitiesarrow-up-right, perfect for streamlining our release process.


Initially, our lerna.json looked something like this:

Given that exile.watcharrow-up-right is open source, it was crucial to implement certain standards.

A key requirement was enforcing commit linting. More on commit message guidelines at exile.watch herearrow-up-right.

Moreover, with GitHub serving as our NPM registry, it was essential for Lerna to recognize this setup. Thus, I enhanced our lerna.json to adhere to commit conventions and integrate with the GitHub NPM registry, as shown below:

This tailored setup ensures our project adheres to best practices in version management and commit hygiene, all while leveraging GitHub’s infrastructure for package distribution.


Having set up versioning and publishing with Lerna, let’s dive into automating these processes with the Lerna CLI to streamline our workflow.

Last updated