Changelog generation ignoring most recent tag

Author: tomh-tCreated Jan 22, 2025Updated Jun 26, 2026

I have a previously tagged release:

bash
  1 * 4e5cededd (HEAD -> feature/PE-3752/automate-changelog, origin/feature/PE-3752/automate-changelog) chore(changelog): automate changelog generation with workflow_dispatch release
  2 * 19c01c4f0 fix(thing): incorrect reference to "this" in html template
  3 *   5a807f85f (origin/develop, origin/HEAD, develop) Merge tag 'v6.39.9' into develop
  4 |\
  5 | *   04765be97 (tag: v6.39.9, origin/master, master) Merge branch 'hotfix/6.39.9'

And package.json matches:

json
{
  "name": "project",
  "description": "my project",
  "version": "6.39.9",
  "scripts": {

When running the following command

bash
npx conventional-changelog-cli -p angular -i CHANGELOG.md -o CHANGELOG.md --same-file --config ./changelog-preset.config.mjs

With the following config file:

javascript
import createConfig from 'conventional-changelog-conventionalcommits';

const config = await createConfig({
  issuePrefixes: ['EG-'],
  issueUrlFormat: 'https://not-relevent/{{prefix}}{{id}}',
});

export default config;

The resulting CHANGELOG contains commits from the last 3 or 4 semver tags.

I've also tried other config options such as specifying the --tag-prefix v to no avail

Source: conventional-changelog/conventional-changelog