-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
hotfix
branch from theproduction
branch (on GitHub). -
Commit the patch to the
hotfix
branch by:- Branching from
hotfix
and then committing patches to the newpatch
branch. - Creating a PR for the
patch
branch on GitHub, then squash merge it into thehotfix
branch.
- Branching from
-
When hotfixes are done, create a PR for the
hotfix
branch and merge it into theproduction
branch using the--no-ff
option. -
Delete this branch.