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
{{ message }}
Repository navigation
The version number will be confused when use --prerelease option #434
The version number will be confused when use --prerelease option:
Expected behavior
The version number is incremented in the normal way.
Additional context
When I execute this command many times, there is a problem with the version number, the log as follows:
(venv) pydemo % semantic-release version --prerelease
Creating new version
Current version: 0.3.5
Bumping with a None version to 0.3.5-beta.3
(venv) pydemo % semantic-release version --prerelease
Creating new version
Current version: 0.3.6
Bumping with a None version to 0.3.6-beta.4
(venv) pydemo % semantic-release version --prerelease
Creating new version
Current version: 0.3.5
Bumping with a None version to 0.3.5-beta.5
(venv) pydemo % semantic-release version --prerelease
Creating new version
Current version: 0.3.6
Bumping with a None version to 0.3.6-beta.6
@donhui I reworked the prerelease feature in this PR: #435
My local tests gave the correct results, maybe you run your example again with the the code from this branch to make sure it works?
(also, it will only work if all version bumps are done on the same branch)
How does it work when you use the command semantic-release version --prerelease multiple times ?
The first time I got a correct version (like 1.1.0-beta.0) but next, it tells me error: no versions found in the configured locations. It seems it comes from the parsing (the regex does not include prerelease).
This issue is stale because it has not been confirmed or planned by the maintainers and has been open 90 days with no recent activity. It will be closed in 7 days, if no further activity occurs. Thank you for your contributions.
Activity
jacksbox commentedon Apr 7, 2022
@donhui I reworked the prerelease feature in this PR: #435
My local tests gave the correct results, maybe you run your example again with the the code from this branch to make sure it works?
(also, it will only work if all version bumps are done on the same branch)
FlorentGodin commentedon Apr 11, 2022
Hello,
How does it work when you use the command
semantic-release version --prereleasemultiple times ?The first time I got a correct version (like 1.1.0-beta.0) but next, it tells me
error: no versions found in the configured locations. It seems it comes from the parsing (the regex does not include prerelease).My pyproject.toml :
Do I forget something ?
jacksbox commentedon Apr 11, 2022
@FlorentGodin I made an error when implementing - a new fixed version is already in progress
FlorentGodin commentedon Apr 11, 2022
Thanks @jacksbox!
github-actions commentedon May 3, 2022
This bug report has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed.
github-actions commentedon Nov 13, 2022
This bug report has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed.
github-actions commentedon Mar 26, 2024
This issue is stale because it has not been confirmed or planned by the maintainers and has been open 90 days with no recent activity. It will be closed in 7 days, if no further activity occurs. Thank you for your contributions.
github-actions commentedon Apr 2, 2024
This issue was closed because activity was dormant for 97 days.