question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

publish --conventional-commits Changelog not committed

See original GitHub issue

lerna publish --conventional-commits works well, but doesn’t fully commit everything- usually leaving a lingering changelog that I have to commit by hand after. It seems to commit some change logs but not all.

Expected Behavior

Should commit all changelogs

Current Behavior

Always leaves one changelog that I have to commit by hand (publishes others)

Possible Solution

Steps to Reproduce (for bugs)

  1. Make changes to a package and make sure lerna changed sees it
  2. Make a conventional commit
  3. lerna publish --conventional-commits
  4. Observer there’s a changelog hanging around after the operation completes
lerna.json

{
  "version": "independent",
  "npmClient": "yarn",
  "useWorkspaces": true,
  "command": {
    "version": {
      "message": "chore(release): publish %s"
    },
    "publish": {
      "conventionalCommits": true
    }
  },
  "ignoreChanges": ["**/__fixtures__/**", "**/__tests__/**", "**/*.md"]
}

Context

I’m just trying to automate publishing versions and changelogs

Your Environment

Executable Version
lerna --version 3.13.2
npm --version 6.9.0
yarn --version 1.15.2
node --version 10.15.3
OS Version
NAME VERSION
macOS Sierra 10.14.4

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rjhilgefortcommented, Apr 25, 2019

After a bunch of tinkering, trial and error… I noticed that that a few or our changelog files were lowercase: changelog.md instead of CHANGELOG.md. Interestingly enough, it would put the change in that file, but not stage it to be committed I guess.

I renamed it to be uppercase and everything is working! Thanks for jumping in here so quickly and trying to help!

0reactions
rjhilgefortcommented, Sep 3, 2020

Not that I’m aware of. I just renamed all my changelog.md files.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using "lerna publish --conventional-commits" auto generate ...
I use lerna publish --conventional-commits to auto generate CHANGELOG.md. And lerna default use "conventional-changelog-angular" preset ...
Read more >
@lerna/conventional-commits | Yarn - Package Manager
Change Log. All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
Read more >
Automated Releases - Melos
If a commit message does not follow the Conventional Commits specification, it will be ignored. Filter out commits with types that don't trigger...
Read more >
Contribution Releases | TinaCMS Docs
Generate CHANGELOGs and Git tags: lerna version \ --conventional-commits \ --conventional-prerelease \ --no-push \ --allow-branch next \ -m "chore(publish): ...
Read more >
Conventional Commits
Additional types are not mandated by the Conventional Commits specification, and have no ... The description is a short summary of the code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found