1

Is there a way to use npm-version and not commit, to only change the version but leave it uncommitted?

I know that I can use npm version {my-version}, but is there an argument flag I can add so that the change isn't committed?

SwissCodeMen
  • 4,222
  • 8
  • 24
  • 34
ineedtoknow
  • 1,283
  • 5
  • 28
  • 46

1 Answers1

1

You can be disabled this on the command line by running npm --no-git-tag-version {my-version}. Then it will not create a version commit and version tag.

This will fail, if the working directory is not clean, unless the -f or --force flag is set.

see also npm-version documentation

SwissCodeMen
  • 4,222
  • 8
  • 24
  • 34