I would like to auto-increment the version number during build.
The expected effect is - after successive builds, the version that I see in my app somewhere is bigger every time. For Android build I use Trapeze that can autoincrement the versionCode and places it in the build.gradle file , and for Web build I use npm-version patch, that icrements the 3rd part of the version and writes the change into package.json
However it is not enough to do this all, the result should be committed and pushed back to the git repo.
The question - is it allowed? Has it been tried? Does it work ? Is it a good practice? Is there a better alternative to what I want to achieve ?
Mike