-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Maintenance
Table of Contents
To release a new Major or Minor version, perform a no fast-forward merge from the master branch into the production branch.
To release a new Patch version, perform a no fast-forward merge from the hotfix branch into the production branch.
When GitHub Actions detects updates to the production branch, it will automatically trigger the release process.
Important
Please do not enable any check tools such as Codacy Static Code Analysis or commitlint under the repository’s branch protection rule Require status checks to pass before merging. Doing so will prevent GitHub Actions from pushing commits to the master branch, which will cause the automated release process to fail.
The hotfix branch naming format is hotfix/<MAJOR>.<MINOR>.<PATCH>, e.g. hotfix/3.2.1. It is a temporary branch with a life cycle:
-
Create a new
hotfixbranch from theproductionbranch (on GitHub). -
Commit the patch to the
hotfixbranch by:- Branching from
hotfixand then committing patches to the newpatchbranch. - Creating a PR for the
patchbranch on GitHub, then squash merge it into thehotfixbranch.
- Branching from
-
When hotfixes are done, create a PR for the
hotfixbranch and merge it into theproductionbranch using the--no-ffoption. -
Delete this branch.