-
Notifications
You must be signed in to change notification settings - Fork 36
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: bump release type by dependent if deps.release is inherit #100
Conversation
Hey, @gavmck, Could you add a test for the fix? |
Sure thing, I'll drop some in shortly |
@antongolub Sorry, I know this has taken ages! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good. Thanks for the contribution.
We will land this asap.
## [7.1.2](v7.1.1...v7.1.2) (2024-07-28) ### Bug Fixes * bump release type by dependent if deps.release is inherit ([#100](#100)) ([d44f324](d44f324))
🎉 This PR is included in version 7.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Changes
When
deps.release
is set toinherit
, but a package has changes, it overwrites the release type from the dependent package, even if the release type was greater (patch < minor < major).This updates the
resolveRelesaseType
function so that if a dependent package has a larger version bump anddeps.release
is set to inherit, we'll take the inherited release type instead of the lesser local package one.Test scenario: I had a major version bump in one of my packages that all other packages are dependent on and the dependent packages were only doing a minor update because they had local changes.