4

We have a number of packages in a monorepo, managed by Lerna and with mandatory conventional commits. While everyone's on the same page at the HEAD of master/latest version, things work great. But we now have a need for creating long term support releases, i.e. a major release that we keep backporting fixes to.

How is this supposed to work with Lerna? E.g.

  1. Say I have [email protected] and [email protected] and b depends on a.
  2. I make a breaking change to a and publish giving me [email protected] and also [email protected] due to the version bump.
  3. I discover a bug in a, fix it on master and publish which creates [email protected] and also [email protected].
  4. I create a branch from point 1 above and backport the fix (for purposes of long term support). When I publish it correctly tries to create [email protected] but fails when trying to create [email protected] since that version already exists.

Any ideas?

Jure Triglav
  • 1,862
  • 18
  • 22

0 Answers0