Skip to content

Initial release version is v0.0.0 #37

@gl3b4ik

Description

@gl3b4ik

It seems like release-it is passing the latest version as 0.0.0 on repositories without any tag/release, but node-calver is unable to increment this value because it is not valid (see validation).

I've created two identical repositories to reproduce the problem (both contain only two commits):

  • gl3b4ik/release-it-calver-manual - here I've manually created tag/release with YYYY.MM.MINOR format on first commit and release-it --ci created correct version 2023.10.1 on second commit.
  • gl3b4ik/release-it-calver-initial - there are no previously created tags/releases so release-it --ci created version v0.0.0. Any following try to bump the version will fail because v0.0.0 is the latest version and release-it-calver-plugin will return this version as bumped so release-it --ci will fail due to conflict (tag already exists).

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