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.
- Create a pull request into
develop. - Run the checks in Testing and make sure the pull request is reviewed and approved.
- Merge the pull request into
develop. - When you are ready to make a release, merge
developintomain. - Check that
mainworkflows have succeeded:Deploypublishes the build to GitHub Pages.Release Versioncalculates the nextYYYY.Nversion, updatespacakage.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.
- The release process updates the version number of the release on the
mainbranch and pushes that back to the repo. This needs to be pushed onto thedevelopbranch:
git checkout main
git pull
git checkout develop
git merge main
git push
- 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.
-
maindeployment succeeds. - merge new version number from
maintodevelop. - close the milestone on github and create a new one (if needed).
- check the new version tag and deployed site work as intended.