go-semantic-release / semantic-release

📦🚀 semantic-release written in Go
https://go-semantic-release.xyz
MIT License
395 stars 43 forks source link

No pre-release for this version possible #181

Open c7h opened 2 months ago

c7h commented 2 months ago

Hello

I am trying to implement pre-releases on my beta/v1 branch. I was following the README.md, but when I attempted to push to this branch, my pipeline failed with the error message "no pre-release for this version possible." I would appreciate guidance on how to resolve this issue.

[go-semantic-release]: version: 2.27.1
[go-semantic-release]: trying to prefetch plugins...
[go-semantic-release]: all plugins were prefetched!
[go-semantic-release]: ci-condition plugin: GitLab CI@1.10.0
[go-semantic-release]: provider plugin: GitLab@1.15.0
[go-semantic-release]: getting default branch...
[go-semantic-release]: found default branch: main
[go-semantic-release]: repo is private
[go-semantic-release]: found current branch: beta/v1
[go-semantic-release]: found maintained version: 1-beta
[go-semantic-release]: found current sha: 03225cefe32ee207fc975d0b64ffd927ed73d891
[go-semantic-release]: running CI condition...
[go-semantic-release]: getting latest release...
[go-semantic-release]: found version: 1.29.1
[go-semantic-release]: no pre-release for this version possible
[go-semantic-release]: stopping plugins...
christophwitzko commented 2 months ago

Hi @c7h,

this is caused by the fact that go-semantic-release is trying to create a beta release for v1.29.1, which already exists without a pre-release indicator. In your case, you will have to set the maintained version to 1.30.0-beta, and then it should work as expected.