semantic-release-commits-lint

raw JSON →
1.1.0 verified Fri May 01 auth: no javascript

semantic-release plugin that analyzes commit messages using commitlint. Works with semantic-release >=20 and commitlint configurations. Provides analyzeCommits step. Version 1.1.0 adds support for commitlintFile and commitlintConfig options. Requires Node >=18 and peer dependencies jest, semantic-release, and xo. Alternative to built-in commit message analysis with custom commitlint rules.

error Error: Cannot find module 'semantic-release-commits-lint'
cause Plugin not installed or not in node_modules.
fix
Run npm install semantic-release-commits-lint --save-dev
error TypeError: Cannot read properties of undefined (reading 'analyzeCommits')
cause Using import or require incorrectly.
fix
Use string in plugins array, not imported symbol.
gotcha Plugin requires commitlint configuration to be present; otherwise, it may silently pass.
fix Ensure commitlint config file exists or pass commitlintConfig option.
deprecated Deprecated: peer dependency xo may not be maintained.
fix Check xo repository for alternative or compatibility.
breaking Plugin only supports Node >=18. Older Node versions cause runtime errors.
fix Upgrade Node to v18 or later.
npm install semantic-release-commits-lint
yarn add semantic-release-commits-lint
pnpm add semantic-release-commits-lint

Example of configuring the plugin in semantic-release without additional options.

// .releaserc
{
  "plugins": [
    "semantic-release-commits-lint"
  ]
}