Skip to content

The version number will be confused when use --prerelease option #434

@donhui

Description

@donhui

The problem

The version number will be confused when use --prerelease option:
image

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working properlystale

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions