- Bump the version number in
package.json
- Run
npm install
which will update the version inpackage-lock.json
and also reveal whether there are any dependency vulnerabilities to be fixed - Run
npm run build
to compile the TypeScript source code in to JS (output will be inlib/index.js
, ignored by git) - Run
npm run package
to compile the JS from step 1 into a single file (output will be in the dist folder) - Commit the changes to the dist folder from step 4, alongside the version change from steps 1 and 2
- Update
CHANGELOG.md
- Commit the change to the Changelog from step 6
- Push a tag with the absolute new version number to GitHub, which must be in the form
v<major>.<minor>.<patch>
- e.g.v1.3.0
- Move the tag for the
major
version number to the same commit, which will be in the formv<major>
- e.g.v1
Commits made in steps 1 thru 7 should ideally be pushed to a release branch, seeking approval from others to land to main
(default) branch prior to adding and moving tags.