Open mrtnzlml opened 2 years ago
I was just looking for such a feature! This seems like a fairly elegant solution. We do use changesetIgnorePatterns
, but even that isn't sufficient, I don't think. Since our private packages depend on our public one, we're prompted to decline version bumps for our public packages any time our private packages change!
Do you have a version
field in your private workspace? Iirc removing it should solve this use case, as we only request bumps for versioned packages
Describe the user story
I have mix of public and private packages in my monorepo. I really like to be using
yarn version
plugin as it simplifies everything significantly. However, it get's a bit annoying that private workspaces are failing on CI (until I mark them asdeclined
manually). CI is failing because I am running thereyarn version check
(to make sure public workspaces are versioned properly). Mentioned fail:Describe the solution you'd like
I would like to be able to ignore private workspaces when using
yarn version
plugin. I am aware ofchangesetIgnorePatterns
in.yarnrc.yml
but I don't think it's a good solution since the monorepo is changing often and it would be complicated to keep it in sync.Describe the drawbacks of your solution
I am not aware of any drawbacks as this feature should be opt-in via something like
--ignore-private-workspaces
.Describe alternatives you've considered
I considered using
changesetIgnorePatterns
but, as I mentioned above, it might be quite challenging to keep it in sync with the monorepo long-term.