Skip to content

Enable promoteToRelease without the need for a commit #108

@alex42ree

Description

@alex42ree

Let's say I have a component that has a release 1.0.0. Then I create and tag some pre-release versions of a component, saying 1.0.1-RC.0, 1.0.1-RC.1, 1.0.1-RC.2. Now I want to promote the last pre-release version 1.0.1-RC.2 into a new release version 1.0.1 using "-PpromoteToRelease".

Doing this with the current release of the plugin, I get the error "Cannot bump the version, create a new pre-release version, or promote a pre-release version because HEAD is currently pointing to a tag that identifies an existing version. To be able to create a new version, you must make changes"
I could do a commit on the component - but that also changes the component, so it is not the same as the pre-release version that I wanted to promote. Empty commits are not a good practice.
I looked into the semver specification and I did not find anything that disallows retagging an already tagged version with a second version tag.

If you like I could create a pull request with that functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions