Skip to content

Commit

Permalink
Merge pull request #14 from yuki777/ci-release-publish
Browse files Browse the repository at this point in the history
Update release-drafter
  • Loading branch information
yuki777 authored Jun 12, 2024
2 parents 45ed033 + 1efb621 commit 2bd4c85
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 15 deletions.
36 changes: 22 additions & 14 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
name-template: "v$NEXT_MINOR_VERSION 🌈"
tag-template: "v$NEXT_MINOR_VERSION"
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: "Breaking change"
- title: 'πŸš€ Features'
labels:
- "breaking Change"
- title: "πŸš€ Features"
- 'feature'
- 'enhancement'
- title: 'πŸ› Bug Fixes'
labels:
- "enhancement"
- title: "πŸ› Bug Fixes"
- '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.
version-resolver:
major:
labels:
- "bug"
- title: "Dependencies"
- 'major'
minor:
labels:
- "dependencies"
- "renovate"
- title: "Refactor"
- 'minor'
patch:
labels:
- "refactoring"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
- 'patch'
default: patch
template: |
## Changes
$CHANGES
7 changes: 6 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ on:
branches:
- main

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2bd4c85

Please sign in to comment.