Skip to content

Commit

Permalink
chore(ci): introduce the release drafter (#322)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Wise <[email protected]>
  • Loading branch information
diranged and diranged authored Dec 3, 2024
1 parent db4e41d commit f223b79
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name-template: v$RESOLVED_VERSION
tag-template: 'v$RESOLVED_VERSION'
tag-prefix: 'v'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
template: |
## Changes
$CHANGES
32 changes: 32 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release-drafter

on:
push:
branches:
- main

jobs:
release-drafter:
permissions:
# write permission is required to create a github release
contents: write
pull-requests: read
runs-on: ubuntu-latest
steps:
- name: Get Next Version
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ github.token }}
branch: main
majorList: breaking
minorList: feat, feature
patchList: fix, bugfix, perf, refactor, test, tests, chore

- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitish: main
disable-autolabeler: true
version: ${{ steps.semver.outputs.next }}

0 comments on commit f223b79

Please sign in to comment.