You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to release on Gitlab using only the CI_JOB_TOKEN. Since the token does not have the permission to push to the repository, I disabled the git.push option. I do not want to create a commit, only a new tag.
A new tag can be created using the releases API, but the release-it request doesn't set the ref field, which is required when creating a release for a non-existing tag_name. The error message is:
I don't have much experience with GitLab, but I guess the tag must be present in order to create a tag on the remote. Which needs to be pushed first? This is how it works with GitHub: a tag must exist on the remote to create a release.
If a tag specified in tag_name doesn’t exist, the release is created from ref and tagged with tag_name. It can be a commit SHA, another tag name, or a branch name.
I'm trying to release on Gitlab using only the
CI_JOB_TOKEN
. Since the token does not have the permission to push to the repository, I disabled thegit.push
option. I do not want to create a commit, only a new tag.A new tag can be created using the releases API, but the
release-it
request doesn't set theref
field, which is required when creating a release for a non-existingtag_name
. The error message is:Is there any configuration option/ hook I am missing to set this? I could fall back to using a project/ group access token but would prefer not to.
Config:
Output:
The text was updated successfully, but these errors were encountered: