GitHub Actions workflows for release management of the repository.
Changes since this image was created:
beta
to alpha
.rc
to beta
and rc
.
beta
to rc
by enabling Start Release Candidate
in dispatch event.STABLE_BRANCH
PACKAGE_JSONS_TO_REWRITE
and INDENT
according to the Variables clause.Copy and use these workflows.
The core workflow that is manually triggered. It has three functions:
Start Release Candidate
MERGE RELEASE BRANCH TO MAIN
This workflow changes the description of the PR when CHANGELOG.md is changed.
You must modify line#6 with the default (develop) branch.
Release rc when PR becomes ready for review.
You must create a GitHub App with following settings and set RELEASE_APP_ID
and RELEASE_APP_PRIVATE_KEY
as secrets.
Please execute following installation: https://github.com/actions/create-github-app-token/tree/v1/?tab=readme-ov-file#usage
Contents
permission is required for the on: release
workflow to run via automatic release.on: release
workflows are not triggered for releases created with the default GITHUB_TOKEN
.Pull requests
permission is required to bypass the protect on the stable branch and perform PR merges.App Settings | |
---|---|
Webhook | |
Active | disabled |
Repository permission | |
Contents | Read and Write |
Pull requests | Read and Write |
Open Install App
tab and install to the repository or whole the user/organization.
Then set USE_RELEASE_APP
as true
as a repository variable.
To maintain the integrity of the stable branch, it is recommended that it prohibit push by ruleset.
New Branch Ruleset | |
---|---|
Enforcement status | Active |
Bypass list | |
+ Add bypass | GitHub App you created and installed |
Targets | |
Target branches | stable |
Branch protections | |
Restrict creations | Enable |
Restrict updates | Enable |
Restrict deletions | Enable |
Require a pull request before merging | Enable |
Required approvals | 1 |
Block force pushes | Enable |
RELEASE_APP_ID
(optional)RELEASE_APP_PRIVATE_KEY
(optional)STABLE_BRANCH
PACKAGE_JSONS_TO_REWRITE
(optional)"package.json" "packages/misskey-js/package.json"
INDENT
(required when PACKAGE_JSONS_TO_REWRITE be set)tab
or number of spacesUSE_RELEASE_APP