Easier way to prerelease conventional commit based packages #28456
comp615
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We use the three step API interface to do our releases (version, changelog, publish), along with conventional commits. Our goal is to auto-publish off main, and to do a prerelease publish on every PR (for integration testing).
One thing that we've found challenging is that prerelease flow. (I come from a Lerna background). Our goal is to simply publish a version of every package that was affected by the PR, which seems simple. However the issue is that conventional commits overrules affected and means that the commits on the PR itself must have conventional style. Everyone here is a developer, and we all know that commit messages are usually ("did a thing", "oops", "again", "again final", "asljkdajkshd", "poop"). So we don't want to lint those and get in the way of DX. We DO however, lint our PR messages and what goes to main.
Is there a way to publish affected without using conventional commits? If not, could there be? NX internally has all the pieces and it feels like we are just trying to mix/match its internal behavior. (which maybe is also fine).
For reference, here's an abridged version of our flow:
We're basically working around:
Beta Was this translation helpful? Give feedback.
All reactions