Skip to content

Allow Git branch name to be optional #2

@jonathanwangg

Description

@jonathanwangg

When the user has a branch name that is not suitable for Semantic Versioning 2.0.0, such as when the branch name contains slashes (e.g users/userName/branchName), the command npm version no longer works.

Perhaps this could be a flag when running the npx version-from-git command.

Proposed change is to make the branch name optional. So instead of major.minor.patch-branchName-shortCommitHash, we can do major.minor.patch-shortCommitHash as the version in our package.json.

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