I am trying to use npm version to update package.json
script and push the required changes to the github repository. I have followed below link for the same
https://docs.npmjs.com/cli/version
I gave "postversion": "git push"
command in the package.json
file. While using command - npm version patch -m "Upgrade to %s for reasons"
I am getting below
npm warn :postversion: cannot run in wd %s %s (wd=%s)
Any help is appreciated.