jscutlery / semver

Nx plugin to automate semantic versioning and CHANGELOG generation.
MIT License
719 stars 83 forks source link

Adding `releaseAs=preminor` && `preid=beta` doesn't work as expected #792

Open ak274 opened 3 months ago

ak274 commented 3 months ago

If a package is at v0.3.0-beta.0 and I run target to increment a version with the following config

{
        "preset": "angular",
        "push": true,
        "commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
        "baseBranch": "HEAD:develop",
        "noVerify": true,
        "releaseAs": "preminor",
        "preid": "beta"
      }

It should update the version v0.3.0-beta.1 but it actually calculated version v0.4.0-beta.0 which is wrong.

ak274 commented 2 months ago

@edbzn This is long pending request and blocking us to update package its occurred in latest version. Please help.