-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(release): add nx release plan:check
command to ensure relevant version plans exist
#27343
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit e191abf. 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 4 targets
Sent with 💌 from NxCloud. |
59b25fa
to
e77dced
Compare
… version plans exist
9998864
to
ba86124
Compare
nx release plan-check
command to ensure relevant version plans existnx release plan:check
command to ensure relevant version plans exist
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. |
Current Behavior
When using version plans as a versioning strategy with
nx release
, there is no way to enforce that version plan files are created when changing files.Expected Behavior
There is a new
nx release plan:check
subcommand, intended to be run in CI (and/or potentially a git hook) which will return with exit code 1 if touched projects are not represented in at least one version plan file on disk.What constitutes a touched file is shared with our
affected
logic in other commands, with the additionally capability to be able to ignore file patterns from consideration. This would be useful for not requiring version plans when only documentation or spec files change, for example.Related Issue(s)
Fixes #