-
Check that CI is green.
-
Double check that tests pass:
npm ci && npm test
-
Check that the example slides work:
npm run example:build && npm run lib:serve open http://127.0.0.1:8080/example.html
-
Check that the difference of the current production build (
build/htsd.min.js
) compared to the previous build available at GitHub Pages (origin/gh-pages
) is sensible:NODE_ENV=production npm run lib:build npm run lib:diffBuild
The aim here is to skim the differences between the builds for any unexpected changes.
-
Update version number:
$EDITOR package.json
-
Describe a summary of changes since the last release:
$EDITOR CHANGELOG.md
-
Review your changes, commit them, tag the release:
git diff git commit --all --message="Release v$version" git tag v$version git push origin master v$version
Make sure the version string in
package.json
and git tag name match. Note that the git tag name uses thev
prefix.After pushing, the CI publishes npm package automatically.
-
Bump development version:
$EDITOR package.json
Increase the patch version and add the
-dev
label. For example:0.3.2-dev
.Commit and push:
git diff git commit --all --message='Bump development version' git push origin master
-
Update and publish example:
npm run example:publish