Is there a way to update the version number of my react app package.json version variable via command line? Maybe with npm build or before/after npm build?
I have a build server that will run npm build and then deploy to production. I want to be able to update the version number of my application either during the build process or before it as part of the build pipeline. I am planning to just use the last git commit sha as the version number.
Is there a command that I am missing? I have had a look at npm version but I believe that is for just updating packages. I could be wrong.