Skip to content

Prerelease flag not working, probably a wrong api call to semver #632

@PorterNan

Description

@PorterNan

I found out --prerelease-prefix=beta not working well in current version, so I checked the code in runtime and found probably a wrong api call to semver.inc:

image
And this is not working because semver.inc changed their api call:
Beachball is calling it like:

semver.inc(version, 'patch' | 'minor', 'beta')

According to what semver doc said, It should be like this:

semver.inc(version, 'prelease', 'beta')

Wish there could be a logic fix for this and make prerelease bump working

Correct call (1st line) and possible a wrong call(3rd line)
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions