conventional-changelog/conventional-changelog

v7 semantic-release stops without any output

maarten-kieft opened this issue · 6 comments

Since 2 days we are facing an issue that semantic-release with the plugin conventional-changelog-conventionalcommits stops without any output and/or errors. We are running the tool in our gitlab pipeline and we have the following script:

version-step:
  image: node:latest
  stage: versioning
  script:
    - >
      npm install -g semantic-release @semantic-release/gitlab @semantic-release/changelog @semantic-release/git @semantic-release/exec;
      npm install conventional-changelog-conventionalcommits -D;
      semantic-release --branches "main"

With version 6, the output is like this:

[1:46:47 PM] [semantic-release] › ℹ  Running semantic-release version 21.1.1
(node:62) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:62) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/gitlab"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/exec"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/gitlab"
[1:46:53 PM] [semantic-release] › ✔  Run automated release from branch main on repository https://gitlab-ci-token:[secure]@gitlab.ic.uva.nl/onderwijshub/onderwijshub.git
[1:46:54 PM] [semantic-release] › ✔  Allowed to push to the Git repository
[1:46:54 PM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/gitlab"
[1:46:54 PM] [semantic-release] [@semantic-release/gitlab] › ℹ  Verify GitLab authentication (https://gitlab.ic.uva.nl/api/v4)
[1:46:54 PM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/gitlab"
[1:46:54 PM] [semantic-release] › ℹ  Found git tag 2.31.0 associated with version 2.31.0 on branch main
[1:46:54 PM] [semantic-release] › ℹ  Found 2 commits since last release
[1:46:54 PM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[1:46:54 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix(IMTEAM-1635): Pinning semantic release version onderwijshub/onderwijshub![42](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L42)4
[1:[46](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L46):[54](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L54) PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[1:46:54 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix(IMTEAM-1635): Pinning the semantic release version to 21.0.1 to resolve pipeline issue onderwijshub/onderwijshub!422
[1:46:54 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[1:46:54 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analysis of 2 commits complete: patch release
[1:46:54 PM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[1:46:54 PM] [semantic-release] › ℹ  The next release version is 2.31.1
[1:46:54 PM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[1:46:54 PM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[1:46:54 PM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/changelog"
[1:46:54 PM] [semantic-release] [@semantic-release/changelog] › ℹ  Update /builds/onderwijshub/onderwijshub/CHANGELOG.md
[1:46:54 PM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/changelog"
[1:46:54 PM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/exec"
[1:46:54 PM] [semantic-release] [@semantic-release/exec] › ℹ  Call script echo BUILD_VERSION=2.31.1 >> build.env
[1:46:54 PM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/exec"
[1:46:54 PM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/git"
[1:46:54 PM] [semantic-release] [@semantic-release/git] › ℹ  Found 1 file(s) to commit
[1:46:[56](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L56) PM] [semantic-release] [@semantic-release/git] › ℹ  Prepared Git release: 2.31.1
[1:46:56 PM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/git"
[1:46:56 PM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[1:46:56 PM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[1:46:[58](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L58) PM] [semantic-release] › ✔  Created tag 2.31.1
[1:46:58 PM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/gitlab"
[1:46:[59](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L59) PM] [semantic-release] [@semantic-release/gitlab] › ℹ  Published GitLab release: 2.31.1
[1:46:59 PM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/gitlab"
[1:46:59 PM] [semantic-release] › ✔  Published release 2.31.1 on default channel

With v7 we get this output which breaks the pipeline:

[8:56:34 AM] [semantic-release] › ℹ  Running semantic-release version 21.0.1
(node:69) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:69) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/gitlab"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/exec"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/gitlab"
[8:56:[39](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393339#L39) AM] [semantic-release] › ✔  Run automated release from branch main on repository https://gitlab-ci-token:[secure]@gitlab.ic.uva.nl/onderwijshub/onderwijshub.git
[8:56:[40](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393339#L40) AM] [semantic-release] › ✔  Allowed to push to the Git repository
[8:56:40 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/gitlab"
[8:56:40 AM] [semantic-release] [@semantic-release/gitlab] › ℹ  Verify GitLab authentication (https://gitlab.ic.uva.nl/api/v4)
[8:56:40 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/gitlab"
[8:56:40 AM] [semantic-release] › ℹ  Found git tag 2.31.0 associated with version 2.31.0 on branch main
[8:56:40 AM] [semantic-release] › ℹ  Found 1 commits since last release
[8:56:40 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"

We are running the latest node version as you can see in the pipeline file. Are we missing something or is v7 broken?

@maarten-kieft Hi. conventional-changelog-conventionalcommits v7.0.0 release contains some breaking changes. Please open issue in semantic-release repo with request to support new preset version,

Thanks for the info, I think its already there: semantic-release/semantic-release#2929 am I correct?

Based on the wording of the breaking change in the release notes, it would not have been at all obvious that this would break semantic-release.

@wyardley Yes, maybe. Sorry. But I wrote that note about packages in this monorepo, I don't know how these packages used in other tools.

Got it, yeah.
As best I know, this plugin was the main way to configure semantic-release to use conventional commits as its main preset vs. angular.

Thanks for the quick response and the pointer to the updated links - I hadn't thought of looking in semantic-release's issues.