Skip to content

Commit df4576b

Browse files
authored
Merge pull request #12 from jmeridth/jm-automate-releases
feat: automate releases
2 parents ba2f79e + 5532054 commit df4576b

File tree

5 files changed

+31
-22
lines changed

5 files changed

+31
-22
lines changed

.github/release-drafter.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,3 @@ version-resolver:
4040
- 'maintenance'
4141
- 'documentation'
4242
default: patch
43-
autolabeler:
44-
- label: 'automation'
45-
title:
46-
- '/^(build|ci|perf|refactor|test).*/i'
47-
- label: 'enhancement'
48-
title:
49-
- '/^(chore|style).*/i'
50-
- label: 'documentation'
51-
title:
52-
- '/^docs.*/i'
53-
- label: 'feature'
54-
title:
55-
- '/^feat.*/i'
56-
- label: 'fix'
57-
title:
58-
- '/^fix.*/i'
59-
- label: 'revert'
60-
title:
61-
- '/^revert.*/i'

.github/workflows/auto-labeler.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Auto Labeler
3+
4+
on:
5+
# pull_request event is required only for autolabeler
6+
pull_request:
7+
# Only following types are handled by the action, but one can default to all as well
8+
types: [opened, reopened, synchronize]
9+
# pull_request_target event is required for autolabeler to support PRs from forks
10+
pull_request_target:
11+
types: [opened, reopened, synchronize]
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
main:
18+
permissions:
19+
pull-requests: write
20+
name: Auto label pull requests
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: release-drafter/release-drafter@v6
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
config-name: auto-labeler.yml

.github/workflows/gh-pages.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: github pages
23

34
on:

.github/workflows/pr-title.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
## Reference: https://github.com/amannn/action-semantic-pull-request
23
name: "Lint PR"
34

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Release Drafter
2+
name: Release Handler
33

44
on:
55
push:
@@ -13,7 +13,6 @@ jobs:
1313
main:
1414
permissions:
1515
contents: write
16-
pull-requests: read
1716
name: Generate release notes
1817
runs-on: ubuntu-latest
1918
steps:
@@ -22,4 +21,4 @@ jobs:
2221
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2322
with:
2423
config-name: release-drafter.yml
25-
# publish: true
24+
publish: true

0 commit comments

Comments
 (0)