title: increment git version with travis when publishing a repo
body: <p>I want to <a href="https://travis-ci.org/" rel="nofollow noreferrer">Travis</a> to publish npm whenever I accept dependent bot changes. I have added npm email and auth token. </p>
  
  <p>My travis configuration is this right now (which I am not sure is correct or not) </p>
  
  <pre><code>language: node_js
  node_js:
    - "node"
  install:
    - "npm install"
  script:
    - "npm run test"
  before_deploy: 
  
  deploy:
    provider: npm
    email: "$npm_email"
    api_key: "$npm_token"
    on:
      branch: production
  </code></pre>
  
  <p>Where npm test looks like this </p>
  
  <pre><code>  "scripts": {
      "test": "jest"
   }
  </code></pre>
  
  <p>How can I make travis to increment npm package version  and have that package version also on the git? same for changelog.md?</p>