semantic-release / commit-analyzer

:bulb: semantic-release plugin to analyze commits with conventional-changelog
MIT License
371 stars 74 forks source link

How to pin the commit-analyzer version #516

Closed julioagos closed 1 year ago

julioagos commented 1 year ago

Any guidance on how to pin the exact version of commit-analyzer. Here is our releaserc file.

{
    "branches": ["master",{"name": "develop", "prerelease": true}],
    "debug": "true",
    "plugins": [
      ["@semantic-release/commit-analyzer", {
      "preset": "conventionalcommits"
        }],   
      "@semantic-release/release-notes-generator",
      "@semantic-release/github"
     ]
  }
travi commented 1 year ago

managing versions depends on how you install them. if using based on it being a dependency of semantic-release, you are already using a version that our team has proven to be compatible. if installing separately, you can either set the version in your package.json or by appending @x.x.x after the dependency in your installation command.

if you are experiencing version problems since the weekend, the commit-analyzer is unlikely to be your problem, but instead your installation of the conventionalcommits preset. i would focus your efforts on pinning that to the version before the major version that was released this weekend with breaking changes.

travi commented 1 year ago

likely related to https://github.com/semantic-release/semantic-release/issues/2922

deantchi commented 1 year ago

@julioagos you can try:

{
    "branches": ["master",{"name": "develop", "prerelease": true}],
    "debug": "true",
    "plugins": [
      ["@semantic-release/commit-analyzer": "v9.0.2", {
      "preset": "conventionalcommits"
        }],   
      "@semantic-release/release-notes-generator",
      "@semantic-release/github"
     ]
  }
travi commented 1 year ago

@julioagos you can try:

{
    "branches": ["master",{"name": "develop", "prerelease": true}],
    "debug": "true",
    "plugins": [
      ["@semantic-release/commit-analyzer": "v9.0.2", {
      "preset": "conventionalcommits"
        }],   
      "@semantic-release/release-notes-generator",
      "@semantic-release/github"
     ]
  }

This is not how the config files work. It is not appropriate to include a version number there

julioagos commented 1 year ago

managing versions depends on how you install them. if using based on it being a dependency of semantic-release, you are already using a version that our team has proven to be compatible. if installing separately, you can either set the version in your package.json or by appending @x.x.x after the dependency in your installation command.

if you are experiencing version problems since the weekend, the commit-analyzer is unlikely to be your problem, but instead your installation of the conventionalcommits preset. i would focus your efforts on pinning that to the version before the major version that was released this weekend with breaking changes.

Thanks for the help. the conventionalcommits preset was what was broken. I pinned the version and it is working again