title: How to do git push from bitbucket-pipelines.yml?
body: <p>I have a node project. What I want to do is on a developer checkin (commit and push), I want to run the bitbucket pipeline which would internally do the following</p>
  
  <ol>
  <li>npm install and npm test</li>
  <li>npm version patch (to increment the version in the package.json)</li>
  <li>git push origin master --follow-tags</li>
  <li>npm publish</li>
  </ol>
  
  <p><strong>bitbucket-pipelines.yml</strong></p>
  
  <pre><code>    image: node:8
      pipelines:
        default:
          - step:
              caches:
                - node
              script:
                - npm version patch
                - git push origin develop --follow-tags
                - npm publish
  </code></pre>
  
  <p>I am facing problem on the "git push origin master --follow-tags". How do I give pipeline the permission to push back to the repository?</p>
  
  <p>Also I want to know if this will trigger a cycle, where my bitbucket pipeline executes again since I incremented the package.json version and did a check in (commit and push)?</p>
  
  <p>What is the recommended way of doing CI/CD With version number increments on a nodejs project using bitbucket-pipelines?</p>
  
  <p>Cheers,
  Rohit</p>