Skip to content

Commit 75e12aa

Browse files
committed
Update GitHub actions and release drafter
1 parent d499c8b commit 75e12aa

4 files changed

Lines changed: 115 additions & 43 deletions

File tree

.github/release-drafter.yml

Lines changed: 108 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,125 @@
1-
name-template: 'v$RESOLVED_VERSION'
2-
tag-template: 'v$RESOLVED_VERSION'
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
34
template: |
45
# What's Changed
56
67
$CHANGES
78
9+
---
810
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
911
1012
categories:
11-
- title: '💣 Breaking'
12-
label: 'breaking'
13-
- title: '🚀 Features'
14-
label: 'feature'
15-
- title: '🐞 Bug Fixes'
16-
label: 'bugfix'
17-
- title: '👨‍💻 Maintenance'
18-
label: 'maintenance'
19-
- title: '📖 Documentation'
20-
label: 'documentation'
21-
- title: '🆙 Dependency Updates'
22-
label: 'dependencies'
23-
- title: '🚨 Security'
24-
label: 'security'
13+
- title: "💣 Breaking Changes"
14+
labels: ["breaking"]
15+
16+
- title: "✨ Features"
17+
labels: ["feature"]
18+
19+
- title: "🔧 Fixes"
20+
labels: ["fix"]
21+
22+
- title: "🧹 Refactoring"
23+
labels: ["refactor"]
24+
25+
- title: "📚 Documentation"
26+
labels: ["docs"]
27+
28+
- title: "🧪 Tests"
29+
labels: ["test"]
30+
31+
- title: "⚙️ Maintenance"
32+
labels: ["chore"]
33+
34+
- title: "⬆️ Dependency Updates"
35+
labels: ["dependencies"]
36+
collapse-after: 10
37+
38+
- title: "🚨 Security"
39+
labels: ["security"]
2540
collapse-after: 5
2641

42+
- title: "Other"
43+
labels: ["*"]
44+
45+
exclude-labels:
46+
- "skip-changelog"
47+
48+
version-resolver:
49+
major:
50+
labels: ["breaking"]
51+
minor:
52+
labels: ["feature"]
53+
patch:
54+
labels:
55+
- "fix"
56+
- "refactor"
57+
- "docs"
58+
- "test"
59+
- "chore"
60+
- "dependencies"
61+
- "security"
62+
default: patch
63+
2764
autolabeler:
28-
- label: 'bugfix'
65+
- label: "breaking"
66+
title:
67+
- "/\\bbreak(ing)?\\b/i"
68+
- "/\\bmajor\\b/i"
69+
- "/!:/"
70+
branch:
71+
- "/(break|breaking|major)\\/.+/i"
72+
73+
- label: "feature"
74+
title:
75+
- "/\\b(feat|feature)\\b/i"
76+
- "/\\b(add|introduce|support|enable)\\b/i"
2977
branch:
30-
- '/fix\/.+/'
78+
- "/(feat|feature)\\/.+/i"
79+
80+
- label: "fix"
3181
title:
32-
- '/fix/i'
33-
- label: 'feature'
82+
- "/\\b(fix|bug|hotfix|patch)\\b/i"
3483
branch:
35-
- '/feature\/.+/'
84+
- "/(fix|bugfix|hotfix)\\/.+/i"
85+
86+
- label: "refactor"
3687
title:
37-
- '/add/i'
88+
- "/\\brefactor\\b/i"
89+
branch:
90+
- "/refactor\\/.+/i"
3891

39-
version-resolver:
40-
minor:
41-
labels:
42-
- 'breaking'
43-
- 'feature'
44-
patch:
45-
labels:
46-
- 'bugfix'
47-
- 'maintenance'
48-
- 'documentation'
49-
- 'dependencies'
50-
- 'security'
92+
- label: "docs"
93+
title:
94+
- "/\\bdocs?\\b/i"
95+
- "/readme/i"
96+
branch:
97+
- "/docs\\/.+/i"
5198

52-
exclude-labels:
53-
- 'skip-changelog'
99+
- label: "test"
100+
title:
101+
- "/\\btests?\\b/i"
102+
branch:
103+
- "/tests?\\/.+/i"
104+
105+
- label: "chore"
106+
title:
107+
- "/\\bchore\\b/i"
108+
- "/\\b(ci|build|tooling)\\b/i"
109+
branch:
110+
- "/(chore|ci|build)\\/.+/i"
111+
112+
- label: "dependencies"
113+
title:
114+
- "/\\bdeps\\b/i"
115+
- "/dependenc(y|ies)/i"
116+
- "/\\bbump\\b/i"
117+
- "/\\bupgrade\\b/i"
118+
branch:
119+
- "/deps\\/.+/i"
120+
121+
- label: "security"
122+
title:
123+
- "/\\bsecurity\\b/i"
124+
- "/\\bcve-\\d{4}-\\d+\\b/i"
125+
- "/\\bvulnerability\\b/i"

.github/workflows/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-node@v4
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-node@v6
1515
with:
1616
registry-url: 'https://registry.npmjs.org'
17-
node-version: 18
17+
node-version: 22
1818
cache: npm
1919
- run: npm ci
2020
- run: npm test
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Draft
1+
name: Release Drafter
22

33
on:
44
push:

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
11+
- uses: actions/checkout@v6
12+
- uses: actions/setup-node@v6
1313
with:
1414
registry-url: 'https://registry.npmjs.org'
15-
node-version: 18
15+
node-version: 22
1616
cache: npm
1717
- run: npm ci
1818
- run: npm run build

0 commit comments

Comments
 (0)