title: Edit package version on gitlab with husky on merge request
body: <p>I want to edit my package version when I make a merge on Gitlab. I try with Husky like that but it's not working.</p>
  <pre><code>{
     &quot;hooks&quot;:{
         &quot;pre-commit&quot;: &quot;npm run lint:fix&quot;,
        &quot;post-merge&quot;: &quot;(git-branch-is staging &amp;&amp; npm version minor || git-branch-is master &amp;&amp; npm version major) &amp;&amp; git add . &amp;&amp; git commit -m \&quot;new version\&quot;&quot;,
     }
  }
  </code></pre>
  <p>And I try with Gitlab-CI like that</p>
  <pre><code>enable_merge:
    stage: staging_deploy
    only:
      - staging
    script:
      - npm version minor
  </code></pre>
  <p>And I get an error message</p>
  <pre><code>$ npm version minor
  v0.5.0
  npm ERR! code 128
  npm ERR! Command failed: git commit -m 0.5.0
  npm ERR! 
  npm ERR! *** Please tell me who you are.
  npm ERR! 
  npm ERR! Run
  npm ERR! 
  </code></pre>
  <p>I can't do it on local because branches staging and master are protected</p>