Making a release - MotivationalModelling/mm-local-editor GitHub Wiki

Current release process

The repository uses develop and main as the main branches. Releases are versioned and tagged automatically from main.

  1. Create a pull request into develop.
  2. Run the checks in Testing and make sure the pull request is reviewed and approved.
  3. Merge the pull request into develop.
  4. When you are ready to make a release, merge develop into main.
  5. Check that main workflows have succeeded:
    • Deploy publishes the build to GitHub Pages.
    • Release Version calculates the next YYYY.N version, updates pacakage.json, commits it, and creates the matching Git tag.

Do not attempt to manually edit the version or tag unless the release workflow has failed.

  1. The release process updates the version number of the release on the main branch and pushes that back to the repo. This needs to be pushed onto the develop branch:
git checkout main
git pull
git checkout develop
git merge main
git push
  1. You also need to close the milestone for this release on github. This will generate release notes for all issues closed in the release. Make sure that there's a new milestone created which should hold any unclosed issues from the release as well as any others.

Release checklist

  • All changes marked for this release are merged into develop.
  • All unit/component tests pass.
  • Lint passes.
  • The production build succeeds.
  • Cypress tests pass.
  • main deployment succeeds.
  • merge new version number from main to develop.
  • close the milestone on github and create a new one (if needed).
  • check the new version tag and deployed site work as intended.