We are holding a CI
pipeline to run on every PR.
Once a PR marked as completed, it auto merge the code to master
branch.
We want to update the version in package.json
using npm version
, however, we have a branch policy to prevent direct push to master
branch.
How can we apply the npm version
command upon the PR completion and make it commit the new version to master
?