unjs / changelogen

💅 Beautiful Changelogs using Conventional Commits
MIT License
902 stars 43 forks source link

`release` commit being included as a chore in changelog #209

Open modbender opened 1 month ago

modbender commented 1 month ago

Environment

Nuxt project info:

Reproduction

Simply run npx changelogen in a repository with an already existing tag.

Describe the bug

release commit being included as a chore when I try to run npx changelogen

## v1.1.2...main
[compare changes](https://github.com/modbender/nuxt-tiptap-editor/compare/v1.1.2...main)
### 🩹 Fixes
- Editor config ([f571e13](https://github.com/modbender/nuxt-tiptap-editor/commit/f571e13))
### 🏡 Chore
- **release:** V1.1.2 ([bcf98ec](https://github.com/modbender/nuxt-tiptap-editor/commit/bcf98ec))
- Upgrade packages ([3dae1e7](https://github.com/modbender/nuxt-tiptap-editor/commit/3dae1e7))
- Formatting, updates & fixes ([2748b38](https://github.com/modbender/nuxt-tiptap-editor/commit/2748b38))
- Add release-it ([f0b79e1](https://github.com/modbender/nuxt-tiptap-editor/commit/f0b79e1))
### ❤️ Contributors
- Modbender

Additional context

No response

Logs

No response

modbender commented 1 month ago

This is a required fix for a next step. I want to use changelogen with release-it to automate publishing packages.

{
  "git": {
    "changelog": "npx changelogen",
    "commitMessage": "chore: release v${version}",
    "requireCleanWorkingDir": true
  },
  "github": {
    "release": true,
    "releaseName": "v${version}"
  },
  "npm": {
    "skipChecks": true
  },
  "plugins": {
    "release-it-pnpm": {
      "inFile": "CHANGELOG.md"
    }
  },
  "hooks": {
    "after:bump": "npx changelogen --output"
  }
}