title: Automatic version increment of angular build while building angular project every time
body: <p>I am an angular developer. and as a requirement of company, I need to add version into my angular project's one page(component).</p>
  <p>for manage version. I did make one variable called &quot;Version&quot; in <strong>environment/environment.ts</strong> and other environment's files.</p>
  <p>Now current flow of version is like this :</p>
  <ol>
  <li>Increase <strong>version</strong>  variable value into environment file.</li>
  <li>Then make a build using this command : ng build --prod -c production</li>
  <li>It will replace environment.ts file with environment.prod.ts file in which I did increase the verison variable.</li>
  <li>Every time I need to increase version number manually and then I ran command for make a new build.</li>
  </ol>
  <p>But Now I want to automate that version variable into environment files. while I run command with appropriate configuration, It should automatic increase version into appropriate file and then should made a new build.</p>
  <p>I started to find this kind of scenario and solution on google before a week ago, but still not found any solution, how to achieve that.</p>
  <p>If anyone have any idea about environment's variable change while build. then Please share it with me. It will really helpful for me.</p>