Duplicate version in changelog

Author: dtieberCreated Dec 2, 2021Updated Feb 29, 2024
Labelsbug

Describe the bug I've just started using standard-version in a new project. I generated the first CHANGELOG for version 1.0.0 with --first-release. Now I tried to release a new (minor) version but I noticed that the entire chapter for version 1.0.0 got generated again. Now I got it twice in my CHANGELOG.md.

Current behavior standard-version does not start collecting changes from the last release but from the beginning again

Expected behavior No duplicate versions in the CHANGELOG

Environment

  • standard-version version(s): 9.3.2
  • Node/npm version: Node 14
  • OS: macOS 11.6

Additional context My versionrc:

{
  "header": "# Changelog\n\nAll notable changes to this project will be documented in this auto-generated file.\n\n",
  "releaseCommitMessageFormat": "build: release v{{currentTag}}",
  "types": [
    {"type":"feat", "section":":tropical_fish: Features"},
    {"type":"fix", "section":"Bug Fixes :bug:"},
    {"type":"refactor", "section": "Refactorings :hammer:"},
    {"type":"style", "hidden": true},
    {"type":"test", "hidden": true},
    {"type":"build", "hidden": true},
    {"type":"ci", "hidden":true}
  ]
}

Source: conventional-changelog/standard-version