How are changed packages detected in a monorepo? #2186
Unanswered
jonathantredway
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to understand if package changes are detected based on last release, or if the PR labels contribute to this detection. I'll give my example set up to illustrate:
Let's say I have a monorepo setup with 2 independently versioned packages (
package Aandpackage B) and haveonlyGraduateWithReleaseLabelset totruein my auto configauto shipitto trigger a release, so I don't add thereleaselabel to the PRmainand no release is created (as expected)package Aand want to release a major version update, so I add thereleaselabel.package Aget the major version release?Both packages will have changed since the last release, but only
package Ashows up in the diff against main when thereleaselabel was applied.I realize this might be somewhat of a lerna behavior question, but fits at the intersection of auto and lerna since auto is the one with knowledge of labels and is responsible for determining what the
sinceshould be when telling lerna to find changed packages.Beta Was this translation helpful? Give feedback.
All reactions