Nothing happens when I run
npm version minor -m "test"
As a note, there is output if I run npm version without any arguments:
$ npm version
{ 'my-app': '0.7.0',
npm: '4.2.0',
ares: '1.10.1-DEV',
cldr: '30.0.3',
http_parser: '2.7.0',
icu: '58.2',
modules: '51',
node: '7.10.0',
openssl: '1.0.2k',
tz: '2016j',
unicode: '9.0',
uv: '1.11.0',
v8: '5.5.372.43',
zlib: '1.2.11' }
How am I supposed to use npm-version? I expect it to update the version number in package.json, run the 'version' script that I've specified in the package.json scripts list, and then commit. I can use npm run version
to execute the 'version' script that I specified, but how do I run npm-version correctly?
The call will fail (silently) if in a git repo that is not clean. You can force it to succeed with -f
or --force
.