Sync Github milestones with semantic-release
Step | Description |
---|---|
verifyConditions |
Verify github tokens are present and valid. |
verifyRelease |
Display information regarding the github milestone. |
- Shows Github milestones summary information when releasing a new version.
- Matches milestones either by:
- Next release version (
v1.1.0
,2.2.0
, ...) - Channel name (
next
,beta
, ...) - Branch name (
master
,next-major
, ...)
- Next release version (
- Appends milestone data to Github Releases
- Automatically closes milestones after releasing
- Protects against releasing milestones with open issues
[semantic-release-github-milestones] › ℹ 🚩 Github Milestone: v1.0.1 🚩
[semantic-release-github-milestones] › ℹ (https://github.com/owner1/repo1/milestone/1)
[semantic-release-github-milestones] › ℹ 6 total issues
[semantic-release-github-milestones] › ℹ ⚠️ ⚠️ 2 open issues ⚠️ ⚠️
[semantic-release-github-milestones] › ℹ 🚩 Github Milestone: next 🚩
[semantic-release-github-milestones] › ℹ (https://github.com/owner1/repo1/milestone/7)
[semantic-release-github-milestones] › ℹ 15 total issues
[semantic-release-github-milestones] › ℹ No open issues ✔️
npm install --save-dev semantic-release-github-milestones
The plugin can be configured in the semantic-release configuration file:
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"semantic-release-github-milestones",
]
}
Github authentication is required and can be set via environment variables.
Variable | Description |
---|---|
GH_TOKEN or GITHUB_TOKEN |
Required. The token used to authenticate with GitHub. |