Replaces the `npm run allbuild` script with the `npm version` command.
It creates a new commit with a standardized message & includes the built
app.
Usage: `npm version [patch | minor | version | 10.0.0 | etc]`
Will update the package.json & perform a bunch of steps in a row:
- Runs `npm install` in:
- The root directory
- The ./electron/ directory
- The ./tools/bump-version/ directory
- Runs `npm run test`
- Update the version string in:
- ./electron/package.json (version)
- ./src/Constants.ts (VersionString)
- ./doc/source/conf.py (version & release)
- Runs `npm run doc` (build the markdown documentation)
- Runs `npm run build` (production build)
- Runs `npm run electron` (electron build)
- Runs `git add --all`
- Runs `git push -u origin dev && git push --tags`