Rene Enriquez
Rene Enriquez

Reputation: 1609

Applying semver on mono-repo node js projects

I have used npx semantic-release for tagging projects in GitHub. I am currently working on a project that uses a mono-repo layout, something like:

mono-repo

I'd like to generate tags/releases separated each per component. I am not quite sure about how the tagging mechanism should work in this case. I was thinking about addiing logic to identify which component has been updated and generate a tag prefixing the component name like mobile-1.0.1, api-1.2.1, etc... Does anybody have previous experience working on something similar?

I was also thinking about creating a separate repo, each per component and from there everything will be easier to manage, any advice is appreciated.

Upvotes: 2

Views: 1382

Answers (1)

Rene Enriquez
Rene Enriquez

Reputation: 1609

It seems the way to go it's lerna. I found out this library pretty useful in these cases. https://github.com/lerna/lerna/tree/main/commands/version

If you guys are using any other different approach, I'd like to know about any other alternative

Upvotes: 1

Related Questions