standard-version: latest release breaks changelog commit (note, this issue seems to potentially be related to dotgitignore)

error:

$ standard-version
✔ outputting changes to CHANGELOG.md
✔ committing CHANGELOG.md
Command failed: git commit CHANGELOG.md -m "chore(release): 1.0.0"

Command failed: git commit CHANGELOG.md -m "chore(release): 1.0.0"

rolling back to 4.2.0 fixes issue

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 5
  • Comments: 25 (11 by maintainers)

Most upvoted comments

Same problem for me. In my case the package.json is included in the .gitignore, and the changelog is never outputed with the 4.3.0

@bcoe sure can - need latest on dotgitignore to be released first though as current release (2.0) does not solve the issue.

Having same issue with 4.3.0, upgraded to 4.4.0 and still have same issue with: standard-version --preset angular --release-count 0 "--release-as-patch" I receive the following error:

Command failed: git commit CHANGELOG.md -m "chore(release): 1.9.7"

Command failed: git commit CHANGELOG.md -m "chore(release): 1.9.7"

Error is outputted twice. Rolling to 4.2.0 fixed the issue for me as well.