This section describes the release procedure for OurBigBook CLI, which is an npm package. For OurBigBook Web deployment see: OurBigBook Web deployment.
Before the first time you release, make sure that you can login to NPM with:This prompts you to login via the browser with 2FA. Currently you can also tick a box to not ask again for the next 5 minutes, which should be enough for the following release command. If you don't select this option, you will be prompted midway through the release command for login.
npm login
Releases should always be made with the official www.npmjs.com/~ourbigbook-admin NPM user.
Then, every new release can be done automatically with the release script, e.g. to release a version 0.7.2:or to just increment the minor version, e.g. from the current That script does the following actions, aborting immediately if any of them fails:
./release 0.7.2
0.7.1
to 0.7.2
you could can omit the version argument:./release
- runs the tests
- publishes this documentation
- updates
version
inpackage.json
- creates a release commit and a git tag for it
- pushes the source code
- publishes the NPM package