New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(release): propagate release for dependent packages #22497
Conversation
Propagate release for all dependant packages that need updating when projectRelationship is "independent" . Fixes nrwl#22268
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 0040d75. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 5 targets
Sent with 💌 from NxCloud. |
Hi @brugi82, thanks a lot for this! The PR that allows for this behaviour to be controlled is here: #21313 I'm afraid it didn't make it over the line at the time and needs to be rekindled. I don't think we should merge this PR as is as some folks might prefer/be depending on the current behaviour for certain workflows. While you wait for #21313 hopefully you can simply apply this change you made as a temporary patch via patch-package or pnpm |
Hi @JamesHenry! What is the related ticket and discussion for the above referenced PR #21313? I was hoping to read some discussion about why it didn't make it across the finish line at the time so I could add a vote for that feature to come in if it would help getting it re-prioritized. This particular PR would resolve #22268 which has already garnered some interest from folks in the short time since it was created. This is actually critical functionality for NX users who are library authors who intend to publish libraries... so anything we can do to get some solution in, I am all for. I am even willing to put some resources from my org behind helping to get it in if it is a matter of bandwidth. Does the other draft PR need to get dusted off so it is ready to come in? Give us some direction here on where we should send resources. |
@brianespinosa Yes it is purely down to resource constraints, I am on vacation until April 15th and I can look at with fresh eyes then. If you are feeling inspired and want to take the commits there and apply it to your fork and bring it up to date with the latest and add relevant e2e coverage and ensure any existing tests/quality checks pass then that for sure would be highly appreciated and we can work together to get it released. |
The PR is now ready for review here: #22836 Please take a look for a preview of how you will opt into the behaviorr and what changelogs will look like I am closing this one to avoid confusion, many thanks again |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Propagate release for all dependant packages that need updating when projectRelationship is "independent" .
Current Behavior
Right now when monorepo has
projectRelationship: "independent"
,nx release
is tagging and releasing only projects with changes and not projects that depend on those. For example, lets say that we have 2 projects in our monorepo:is-even
andis-odd
(which depends onis-even
). If we make changes tois-even
,nx release
will only tag and release that project and notis-odd
too, even though it'spackage.json
is updated to reflect the dependency on the latest version ofis-even
.nx release
config that we are using in the example:Expected Behavior
nx release
will tag and release projects that depend on projects with changes too. In the example above, both packages will be released.Related Issue(s)
Fixes #22268