Skip to content

Can you add a variable for the version in the commit message? #29

Closed
@RTSchriner

Description

@RTSchriner

Can you add a variable for the version in the commit message?

npm version does this. See https://docs.npmjs.com/cli/version.html

If supplied with -m or --message config option, npm will use it as a commit message when creating a version commit. If the message config contains %s then that will be replaced with the resulting version number. For example: npm version patch -m "Upgrade to %s for reasons"

So%s becomes the version - bump --premajor --lock --commit "release %s to the wild"

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions