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
CHANGELOGS not generated correctly when using "--conventional-graduate" #2248
Comments
I can reproduce this. This commit message is valid under the conventional commitlint config but does not yield an entry in the changelog, instead creating the "bump only" message: @kelvincy It does work for me when changing the type to "fix". That could be a workaround until this issue can be fixed in lerna |
Hey @thuringia, I tried with the commit messages We have found a fix for this. Not sure if this is a preferred way, but it is currently working for us: Prereleases:
Production:
|
Interesting; thanks for letting me know. I will keep this in mind in case my current strategy stops working |
@thuringia What is your current strategy then? It's not optimal to regenerate the entire changelog on each release using the |
This should help keep down the clutter and make the changelog more useful lerna/lerna#2248 (comment)
@kelvincy I just found the --no-git-tag-version flag which I think makes your process a bit easier. Prereleases:
See our build script |
I found that for 4.0.0, Using it prevents use of
One has to add steps to make a commit and then
(This is in the above build script, but now it's in plain text.) |
Has it been fixed yet? I have the same problem. Lerna does not correctly generate the changelog, it just leaves a note: "Version bump only for package " |
This issue has been a thorn in my organization's side for some time now, and is affecting our ability to effectively use Dependabot to keep internal dependencies up-to-date. We use automated pre-releases on-merge so individual teams can pull in updates immediately, and periodically perform full releases which Dependabot pushes out to all of our apps. Currently, the changelogs of these 'full releases' consist only of the 'version bump only' text. We then have 10s or 100s of Dependabot PRs opened with the description "version bump only", which teams are hesitant to apply or accept. The desired behavior would be to mimic the out-of-the-box behavior of Rough mockup of what I'm describing Expected
Actual
|
I could finally achieve the changelog generation only for prod versions using the --git-tag-command flag: Prerelease:
Production:
|
Expected Behavior
When versioning and publishing a prerelease version we do not want to generate the CHANGELOGS. This is done successfully with the "--no-changelog" for DTA environments.
But when we do "--conventional-graduate" for the production release to remove the "preid", we want to generate a CHANGELOG for the production version. This is what we expect in the CHANGELOG for production.
Current Behavior
This is what we are currently seeing in the CHANGELOG for production.
Possible Solution
It probably has something to do with the git-tags for the prerelease versions that are already "released" with their changes. That is why the production publish does not see the changes anymore.
Steps to Reproduce (for bugs)
For prerelease:
lerna version --conventional-prerelease --no-changelog
lerna publish
Then for production:
lerna version --conventional-graduate
lerna publish
lerna.json
Context
Your Environment
lerna --version
npm --version
node --version
The text was updated successfully, but these errors were encountered: