Skip to content

Add an option to only allow incremental package versions to be published #43

Closed
@Tohaker

Description

@Tohaker

It appears that using the semver.diff function only checks if the package version is different, and subsequently ignores whether the version is actually a higher or lower version.

I'd like to add an option that uses semver.compare to only run if the new package version is higher than that already published. I'm thinking something along the lines of greater-version (default: false, for backwards compatibility).

I'll raise a PR with an implementation too.

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