bitburner-src/tools/bump-version
Martin Fournier 078a62cb0d Add npm version support to build releases
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`
2022-04-07 07:50:47 -04:00
..
.gitignore Add tool to bump version & create PR 2022-01-25 10:20:36 -05:00
basic.js Add npm version support to build releases 2022-04-07 07:50:47 -04:00
index.js fmt and lint 2022-04-06 19:30:08 -04:00
package-lock.json Add tool to bump version & create PR 2022-01-25 10:20:36 -05:00
package.json Add tool to bump version & create PR 2022-01-25 10:20:36 -05:00