This file documents (for maintainers) how to make a new m3api release. For the release notes (for users), see CHANGES.md.
-
Consider running
npm audit fix
,npm update
, checkingnpm outdated
, etc. Add any resulting changes toCHANGES.md
. -
Reviewing
CHANGES.md
, decide on the new version number (i.e. whether the changes warrant a patch, minor, or major release). -
Update the version number in
package.json
andcore.json
, and add it with the current date toCHANGES.md
; runnpm install
to updatepackage-lock.json
; then commit the changes with a message like “Bump version to version”. -
Push the commit, checking that CI still passes.
-
Create an annotated git tag (
git tag -a vversion
). The title is the tag name (vversion), the first body line may be a quick summary; the rest of the body should be theCHANGES.md
section (in Vim, use:r CHANGES.md
, then remove other sections), reflowed to a maximum width of 72 characters (gqip
in Vim). -
Push the tag.
-
On GitHub, turn the tag into a proper release. Use the tag message for the release notes, but with line breaks removed. Once the release is published, CI will automatically publish it to npm.
-
Add a new section for the next release to
CHANGES.md
, and commit it with the message “Add CHANGES.md section for next release”:No changes yet.