Skip to content

Odd prereleasePrefix behavior with non-prerelease change types #1098

@ecraig12345

Description

@ecraig12345

Currently if the prereleasePrefix option is specified, ALL packages with type major/minor/patch will instead be bumped as prerelease due to the logic in bumpPackageInfoVersion.

This dates back to #658, which appears to be a misunderstanding or different opinion about the intended behavior. As originally implemented in #459, prereleasePrefix would only apply for changeType: 'prerelease', which also makes more sense to me.

I think the change from #658 should be reverted (with E2E tests to ensure bumping to prerelease is still possible when it's specified as the change type), but that would be a breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions