Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pin the commit-analyzer version #516

Closed
julioagos opened this issue Aug 28, 2023 · 5 comments
Closed

How to pin the commit-analyzer version #516

julioagos opened this issue Aug 28, 2023 · 5 comments

Comments

@julioagos
Copy link

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
Copy link
Member

travi commented Aug 28, 2023

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
Copy link
Member

travi commented Aug 28, 2023

likely related to semantic-release/semantic-release#2922

@deantchi
Copy link

deantchi commented Aug 28, 2023

@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
Copy link
Member

travi commented Aug 29, 2023

@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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants