Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 1.65 KB

RELEASING.md

File metadata and controls

79 lines (55 loc) · 1.65 KB

Releasing

  1. Check that CI is green.

  2. Double check that tests pass:

    npm ci && npm test
  3. Check that the example slides work:

    npm run example:build && npm run lib:serve
    open http://127.0.0.1:8080/example.html
  4. 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.

  5. Update version number:

    $EDITOR package.json
  6. Describe a summary of changes since the last release:

    $EDITOR CHANGELOG.md
  7. 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 the v prefix.

    After pushing, the CI publishes npm package automatically.

  8. 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
  9. Update and publish example:

    npm run example:publish