-
Notifications
You must be signed in to change notification settings - Fork 8
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(lerna): aggressive patch bump #1163
base: release-v10
Are you sure you want to change the base?
Conversation
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.
Im not too familiar with this setup, but from what I see, it seems like this changes a bit of the release logic. We should then also update the
CONTRIBUTING Readme
so it mirrors these changes. Both regarding to the logic we should have when we remove
--conventional-commits
The logic around bump-verion etc.
I'm not too opinionated on what the best release strategy is as long as it is well documented
Updated the contributing guidelines. |
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.
I think we should add some details on how we want to work with release branches. In other repos I have worked with, all fixes are merged into master, and then fixes are cherry picked from master to release branches. We should have some documentation on how we want to do this?
CONTRIBUTING.md
Outdated
fix(graphUtils): circular path detection [release] | ||
``` | ||
|
||
4. If you want to release a version bumped package from master branch |
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.
Not sure I understand this sentence
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.
Sorry, my wording makes no sense here. This is to release patches and minor version updates to the stable release
``` | ||
|
||
5. If you want to release a package to npm from master by merging the release branch to it while keeping the major version number in release condidate as it is. | ||
- Create a PR from release-* branch to master |
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.
What is the usecase for this? I think the most tidy thing is to always push things to master, and then cherry pick fixes from master to release branches. Do we want to do this? @BugGambit
Addressing Lerna aggressive versioning
References
Expected behavior of the change
By using the implemented logic we can control the versioning and releasing of release candidates as below.
feat/fix/chore (xyz): feature/fix/chore keep constant and publish [release]
feat/fix (abc): feature/fix increase version and publish [release] [bump-version]
feat/fix (zqa): feature/fix no versioning or publishing
The effect of new release.yaml to master branch. Master is also add to alloweBranch list in lerna.json to facilitate the npm package releases.
feat/fix/chore (abc): feature/fix/chore no version update or publish
feat/fix (xyz): feature/fix no version update and publish [release]
feat/fix (xyz): feature/fix version update according to patch(minor) [release][bump-version]
chore (kgb): constant version as release branch [release]
Experiments performed are added below. (play 2X or higher)
04_Moving_From_Conventional_Commit_to_Patch.webm
02_New_Release_Branch_Behavior.webm
03_Current_Master_After_Merging_Cannot_Publish.webm
01_Version_Error_Publishing_Main.webm