title: Adding version in my Laravel App automatically
body: <p>I want to add a version on my Laravel app automatically when some new code is pushed in any branch, preferably using the SemVer convention.</p>
  <p>I have found packages such as <a href="https://github.com/antonioribeiro/version" rel="nofollow noreferrer">https://github.com/antonioribeiro/version</a> and though this does solve the issue of actually having a consistent versioning system, I cannot figure out a way to automate the process.</p>
  <p>More specifically I would like the version to be bumped up whenever changes are pushed to the repo, and ideally this should have to be consistent across all branches.</p>
  <p>Also I would like this solution to work across all developers in the team (so preferably no local config).</p>
  <p>Currently I am using bitbucket for repo hosting and Laravel Forge for development.</p>
  <p>I am thinking that Bitbucket Pipelines would be of use, but I cannot think how this would work. The main problem I have is that if I use bitbucket to up the version and then commit and push this automatically then that would trigger another circle of upping the version and so on.</p>
  <p>So ideally I would like the following workflow:</p>
  <ul>
  <li>Changes are commited</li>
  <li>(App version bump) //This can happen here</li>
  <li>New changes are pushed</li>
  <li>(App version bump) //Or here</li>
  </ul>
  <p>I might be overthinking it so has anyone been in the same situation/has any ideas?</p>
  <p>Thanks</p>