-
Notifications
You must be signed in to change notification settings - Fork 79
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
Duplicate Tags - How to skip to a new version #760
Comments
+1 this has happened for me also |
Can one you please provide a minimal project on GitLab.com that shows this behavior? That would really help us understand the situation better. 🙇 |
Not without some significant effort, it's an internal repository. I guess what would be really useful is to know where sematic-release sources the current version number from, is it purely the releases in gitlab, or is there some extra place it is looking as well? |
semantic-release uses tags and git notes to manage versions and what has been released in which channel. from your mentioned versions, it looks like you are using gitflow with out prerelease workflow (which, btw, is not officially supported), so you will need to repair both to recover from the situation you are in. you can find details about how to do so in our docs at: |
does it use git notes when I'm using the gitlab plugin? If I run
|
git notes are used by the core of semantic-release to track which distribution channels a version has been released to. if you are only releasing to your default channel from your default branch, notes are not important. they are much more important for pre-releases and maintenance release workflows |
Hello,
We are using gitlab and semantic-release and semantic-release/gitlab plugin to do version tagging / creating releases.
Our pipeline was broken by someone manually adding tags (without the associated release in gitlab), so we are now in a situation where our pipeline using semantic-release is trying to create version tag
1.1.0-develop.25
but we are up to1.1.0-develop.36
We have been manually doing the pipeline job since v25 (the devs were unaware of semantic-release, let alone how it worked and needed to get builds out).
We created a release manually in gitlab on the v25 tag, however the semantic-release script is still trying to create v25.
Is there a way to manually do the releases in gitlab to convince semantic-release to use the latest version?
I have seen semantic-release uses git notes to store current version info, I guess that the gitlab plugin uses the gitlanb releases instead to maintain the version info? There are no results for
git notes list
on our repo.Thanks
The text was updated successfully, but these errors were encountered: