Skip to content

From v9 there is a problem with generating changelog with types #115

@kstepien3

Description

@kstepien3

There is my .release-it.json:

{
  "$schema": "https://unpkg.com/release-it/schema/release-it.json",
  "git": {
    "commitMessage": "chore(release): v${version}"
  },
  "github": {
    "release": true,
    "releaseName": "v${version}"
  },
  "npm": {
    "publish": true
  },
  "hooks": {
    "before:init": "git pull && pnpm run lint && pnpm run test"
  },
  "plugins": {
    "@release-it/conventional-changelog": {
      "infile": "CHANGELOG.md",
      "preset": {
        "name": "conventionalcommits",
        "types": [
          {
            "type": "feat",
            "section": "🚀 New Features"
          },
          {
            "type": "fix",
            "section": "🐛 Bug Fixes"
          },
          {
            "type": "perf",
            "section": "⚡️ Performance Improvements"
          },
          {
            "type": "refactor",
            "section": "♻️ Code Refactor"
          }
        ]
      }
    },
    "release-it-pnpm": {}
  }
}

When I run v9+ via release-it --changelog --dry-run the output looks so ugly:

release-it --changelog --dry-run
! git pull && pnpm run lint && pnpm run test
$ git diff --quiet HEAD
$ git rev-parse --abbrev-ref HEAD
$ git config --get branch.ci/release-it.remote
$ git remote get-url origin
! git fetch
$ git rev-parse --abbrev-ref HEAD  [cached]
$ git describe --tags --match=* --abbrev=0
$ git symbolic-ref HEAD
$ git for-each-ref --format="%(upstream:short)" refs/heads/ci/release-it
$ git rev-parse --abbrev-ref HEAD  [cached]
$ git config --get branch.ci/release-it.remote  [cached]
$ git remote get-url origin  [cached]
! git fetch
$ git rev-parse --abbrev-ref HEAD  [cached]
$ git describe --tags --match=* --abbrev=0  [cached]
WARNING Environment variable "GITHUB_TOKEN" is required for automated GitHub Releases.
WARNING Falling back to web-based GitHub Release.
## 19.0.0 (2025-04-05)

* ci(release): add release-it ([6d6ae97](https://github.com/kstepien3/ng-zen/commit/6d6ae97))
* ci(release): make release workflow ([c1551d0](https://github.com/kstepien3/ng-zen/commit/c1551d0))
* chore: flat project to avoid a monorepo system (#133) ([46b31f0](https://github.com/kstepien3/ng-zen/commit/46b31f0)), closes [#133](https://github.com/kstepien3/ng-zen/issues/133)
* build: v19.0.0-alpha.4 ([c3d215f](https://github.com/kstepien3/ng-zen/commit/c3d215f))
* build: v19.0.0-alpha.5 ([8ed863b](https://github.com/kstepien3/ng-zen/commit/8ed863b))
* build(deps-dev): bump @angular-devkit/architect from 0.1901.7 to 0.1902.5 (#125) ([bd9c1c7](https://github.com/kstepien3/ng-zen/commit/bd9c1c7)), closes [#125](https://github.com/kstepien3/ng-zen/issues/125)
* build(deps-dev): bump @chromatic-com/storybook from 3.2.4 to 3.2.6 (#119) ([f3a8490](https://github.com/kstepien3/ng-zen/commit/f3a8490)), closes [#119](https://github.com/kstepien3/ng-zen/issues/119)
* build(deps-dev): bump @commitlint/config-conventional from 19.7.1 to 19.8.0 (#110) ([f027d7f](https://github.com/kstepien3/ng-zen/commit/f027d7f)), closes [#110](https://github.com/kstepien3/ng-zen/issues/110)
* build(deps-dev): bump @storybook/addon-interactions from 8.5.3 to 8.5.5 (#111) ([851bea9](https://github.com/kstepien3/ng-zen/commit/851bea9)), closes [#111](https://github.com/kstepien3/ng-zen/issues/111)
* build(deps-dev): bump @storybook/addon-onboarding from 8.5.3 to 8.5.5 (#102) ([866845a](https://github.com/kstepien3/ng-zen/commit/866845a)), closes [#102](https://github.com/kstepien3/ng-zen/issues/102)
* build(deps-dev): bump eslint-plugin-unicorn from 56.0.1 to 57.0.0 (#100) ([a9e708a](https://github.com/kstepien3/ng-zen/commit/a9e708a)), closes [#100](https://github.com/kstepien3/ng-zen/issues/100)
* build(deps-dev): bump jasmine-core from 5.5.0 to 5.6.0 (#115) ([b8bdd07](https://github.com/kstepien3/ng-zen/commit/b8bdd07)), closes [#115](https://github.com/kstepien3/ng-zen/issues/115)
* build(deps-dev): bump jest-preset-angular from 14.5.1 to 14.5.3 (#120) ([9988db1](https://github.com/kstepien3/ng-zen/commit/9988db1)), closes [#120](https://github.com/kstepien3/ng-zen/issues/120)
* build(deps-dev): bump prettier from 3.5.0 to 3.5.3 (#116) ([1da9c13](https://github.com/kstepien3/ng-zen/commit/1da9c13)), closes [#116](https://github.com/kstepien3/ng-zen/issues/116)
* build(deps-dev): bump stylelint from 16.14.1 to 16.17.0 (#126) ([213b588](https://github.com/kstepien3/ng-zen/commit/213b588)), closes [#126](https://github.com/kstepien3/ng-zen/issues/126)
* feat(checkbox): add new component (#114) ([7edd88c](https://github.com/kstepien3/ng-zen/commit/7edd88c)), closes [#114](https://github.com/kstepien3/ng-zen/issues/114)
* feat(github-page): generate storybook docs (#131) ([bc31d9a](https://github.com/kstepien3/ng-zen/commit/bc31d9a)), closes [#131](https://github.com/kstepien3/ng-zen/issues/131)
* feat(textarea): add component (#127) ([0f98f67](https://github.com/kstepien3/ng-zen/commit/0f98f67)), closes [#127](https://github.com/kstepien3/ng-zen/issues/127)
* docs: improve storybook and project documentation (#130) ([eac61a8](https://github.com/kstepien3/ng-zen/commit/eac61a8)), closes [#130](https://github.com/kstepien3/ng-zen/issues/130)
* refactor(input): logic, styles, docs (#122) ([933603a](https://github.com/kstepien3/ng-zen/commit/933603a)), closes [#122](https://github.com/kstepien3/ng-zen/issues/122)

But in v8 with the same config I have this results:

~/Projects/ng-zen git:[ci/release-it]
release-it --changelog --dry-run
! git pull && pnpm run lint && pnpm run test
$ git diff --quiet HEAD
$ git rev-parse --abbrev-ref HEAD
$ git config --get branch.ci/release-it.remote
$ git remote get-url origin
! git fetch
$ git rev-parse --abbrev-ref HEAD  [cached]
$ git describe --tags --match=* --abbrev=0
$ git symbolic-ref HEAD
$ git for-each-ref --format="%(upstream:short)" refs/heads/ci/release-it
$ git rev-parse --abbrev-ref HEAD  [cached]
$ git config --get branch.ci/release-it.remote  [cached]
$ git remote get-url origin  [cached]
! git fetch
$ git rev-parse --abbrev-ref HEAD  [cached]
$ git describe --tags --match=* --abbrev=0  [cached]
WARNING Environment variable "GITHUB_TOKEN" is required for automated GitHub Releases.
WARNING Falling back to web-based GitHub Release.
## [19.0.0](https://github.com/kstepien3/ng-zen/compare/v19.0.0-alpha.3...v19.0.0) (2025-04-05)


### 🚀 New Features

* **checkbox:** add new component ([#114](https://github.com/kstepien3/ng-zen/issues/114)) ([7edd88c](https://github.com/kstepien3/ng-zen/commit/7edd88cf56c306b6d06a6d95a478f73d9aeba832))
* **github-page:** generate storybook docs ([#131](https://github.com/kstepien3/ng-zen/issues/131)) ([bc31d9a](https://github.com/kstepien3/ng-zen/commit/bc31d9ae181d015a09ba4b2f88de8cd3702f7991))
* **textarea:** add component ([#127](https://github.com/kstepien3/ng-zen/issues/127)) ([0f98f67](https://github.com/kstepien3/ng-zen/commit/0f98f67f802ad30400fdc2dc09557721b9f7741d))


### ♻️ Code Refactor

* **input:** logic, styles, docs ([#122](https://github.com/kstepien3/ng-zen/issues/122)) ([933603a](https://github.com/kstepien3/ng-zen/commit/933603a9e7b4d02da619faf96b322fc20ee92d05))

More info:

...
    "@commitlint/config-conventional": "^19.8.0",
    "@release-it/conventional-changelog": "^10.0.0",
    "release-it": "^18.1.2",
    "release-it-pnpm": "^4.6.4",
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions