Closed as not planned
Description
The problem
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
semantic_release config in pyproject.toml
:
[tool.semantic_release]
version_toml = "pyproject.toml:tool.poetry.version"