18

Is it possible to customize the commit message while using npm version patch?

I' d like to change it to :up-arrow: @VERSIONNUMBER

1 Answer 1

23

Since npm 2.7.4 (and commit 3703b0b, March 2015):

The message in npm version -m <message> is mapped to the message config parameter in .npmrc.

That does not seem to be tied specifically to patch only though.
This test shows a config which modifies the commit message:

sign-git-tag=false
message=":bookmark: %s"

You can try and replace :bookmark: with :up-arrow:.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.