Skip to content

Commit eed1f22

Browse files
committed
CI: Add release-drafter work-flow
1 parent 27696a4 commit eed1f22

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

.github/release-drafter.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Release Drafter template
2+
# Ref: https://github.com/marketplace/actions/release-drafter
3+
4+
name-template: 'v$RESOLVED_VERSION'
5+
tag-template: 'v$RESOLVED_VERSION'
6+
categories:
7+
- title: 💥 API Changes
8+
labels:
9+
- API change
10+
- title: 🚀 Enhancements
11+
labels:
12+
- enhancement
13+
- title: 🎨 Improvements
14+
labels:
15+
- improvement
16+
- title: 🐛 Bug Fixes
17+
labels:
18+
- bug
19+
- title: 🔧 Under the hood
20+
labels:
21+
- technical debt
22+
- dev-dependencies
23+
- title: ⬆️ Dependencies
24+
labels:
25+
- dependencies
26+
- title: 📝 Documentation
27+
labels:
28+
- documentation
29+
exclude-labels:
30+
- DevOps
31+
- dev-dependencies
32+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
33+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
34+
version-resolver:
35+
major:
36+
labels:
37+
- 'major'
38+
minor:
39+
labels:
40+
- 'minor'
41+
patch:
42+
labels:
43+
- 'patch'
44+
default: patch
45+
template: |
46+
## Changes
47+
48+
$CHANGES
49+
50+
## NPM release
51+
NPM release: [$REPOSITORY@$RESOLVED_VERSION](https://www.npmjs.com/package/$REPOSITORY/v/$RESOLVED_VERSION)

.github/workflows/release-drafter.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
update_release_draft:
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: release-drafter/release-drafter@v5
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)