title: Failing to push change from AWS CodeBuild to AWS CodeCommit
body: <p>I have configured a CodePipeline to build and deploy a NPM project.</p>
  
  <p>The pipeline doenloads the source from CodeCommit and builds it using CodeBuild. Two different stages.</p>
  
  <p>However as a post version step, I want to increment the version (npm version patch).</p>
  
  <p>This is failing in the CodeBuild step:
  npm WARN lifecycle [project@version]~postversion: cannot run in wd %s %s (wd=%s) [project@version] git push &amp;&amp; git push --tags /codebuild/output/src334032561/src</p>
  
  <p>I've already configured the IAM service role to have git push permissions.</p>