release-it / conventional-changelog

Conventional changelog plugin for release-it
MIT License
128 stars 38 forks source link

getting ERROR whatBump is not a function #101

Closed ayZagen closed 1 month ago

ayZagen commented 1 month ago

Here is the output:

> cross-env GITHUB_TOKEN=$GITHUB_TOKEN release-it

✔ npm run lint
ERROR whatBump is not a function
 ELIFECYCLE  Command failed with exit code 1.

.release-it.json:

{
  "hooks": {
    "before:init": [
      "npm run lint"
    ],
    "after:bump": [
      "npm run build"
    ]
  },
  "git": {
    "commitMessage": "chore: release v${version}",
    "requireCleanWorkingDir": true,
    "tagAnnotation": "Release v${version}",
    "tagName": "v${version}"
  },
  "github": {
    "release": true,
    "draft": true,
    "releaseName": "v${version}"
  },
  "plugins": {
    "@release-it/conventional-changelog": {
      "preset": {
        "name": "conventionalcommits",
        "types": [
          {
            "type": "feat",
            "section": "Features"
          },
          {
            "type": "fix",
            "section": "Bug Fixes"
          },
          {
            "type": "perf",
            "section": "Performance Updates"
          },
          {
            "type": "a11y",
            "section": "Accessibility"
          },
          {
            "type": "refactor",
            "section": "Refactors"
          },
          {
            "type": "style",
            "section": "Stylistic Updates"
          }
        ]
      },
      "infile": "CHANGELOG.md"
    }
  }
}

and related packages:

{
  "@commitlint/cli": "^19.5.0",
  "@commitlint/config-conventional": "^19.5.0",
  "@release-it/conventional-changelog": "^9.0.0",
  "release-it": "^17.9.0",
}
ayZagen commented 1 month ago

Downgrading "@release-it/conventional-changelog" to 8.0.2 works