Open felixprado-mc opened 3 weeks ago
Thanks for the detailed description @felixprado-mc!
I have not yet of heard of such issues, so let's start with a few basic questions:
Hi @fgreinacher ,
I appreciate your interest.
1, 2, 3, The project is hosted on gitlab.com but it's private so I can't share it. 4, It has never worked before but we have the same configuration for other projects, and it works. I have checked if there is something in the project's or token's configuration but I don't see anything. 5, Which configuration do you propose?
What should be the scope/permissions for the GL_TOKEN?
If this adds more information, we run this step in a Gitlab CI pipeline with the following commands:
npm install @semantic-release/gitlab
npm install @semantic-release/git
npm install @semantic-release/changelog
npm install @semantic-release/commit-analyzer
npx semantic-release
Thanks for sharing some details!
You could start very simple like this:
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/gitlab"
]
}
And if that works add your configuration options one-by-one until it starts failing.
Hi @fgreinacher ,
I appreciate your interest.
1, 2, 3, The project is hosted on gitlab.com but it's private so I can't share it. 4, It has never worked before but we have the same configuration for other projects, and it works. I have checked if there is something in the project's or token's configuration but I don't see anything. 5, Which configuration do you propose?
What should be the scope/permissions for the GL_TOKEN?
If this adds more information, we run this step in a Gitlab CI pipeline with the following commands:
npm install @semantic-release/gitlab npm install @semantic-release/git npm install @semantic-release/changelog npm install @semantic-release/commit-analyzer npx semantic-release
Hi @felixprado-mc, regarding 4:\ You have the exact same configuration and also the exact same gitlab token in other projects and in these other projects it is working? Just not in this particular one?\
I get this error when executing the plugin in a Gitlab CI pipeline. It only happens the first time, because in the second execution it works fine.
I have a GL_TOKEN with the right permissions over the project.
Could anyone help?
This is the .releaserc file of the project:
and the package.json: