Skip to content

Commit

Permalink
fix: release changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzLaurer committed Dec 18, 2024
1 parent b267502 commit 6a4547c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
14 changes: 8 additions & 6 deletions .github/changelog-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
{
"title": "## 🚀 Features",
"labels": ["feature", "enhancement"],
"commits": ["feat\\(.*\\):", "feat:"]
"commits": ["^feat:"]
},
{
"title": "## ⚠️ Breaking Changes",
"labels": ["breaking"],
"commits": ["^BREAKING[ -]CHANGE:"]
"commits": ["^BREAKING CHANGE:"]
},
{
"title": "## 🐛 Bug Fixes",
"labels": ["fix", "bug"],
"commits": ["fix\\(.*\\):", "fix:"]
"commits": ["^fix:"]
},
{
"title": "## 📝 Documentation",
"labels": ["documentation", "docs"],
"commits": ["docs:"]
"commits": ["^docs:"]
},
{
"title": "## ⚡ Performance",
Expand Down Expand Up @@ -60,7 +60,9 @@
"ignore"
],
"sort": "ASC",
"template": "${{CHANGES}}\n\n## 📦 Full Changelog\n\n${{UNCATEGORIZED}}\n\nFor a complete list of changes, see the [full diff](${{RELEASE_DIFF}})",
"template": "${{CATEGORIZED_CHANGES}}\n\n${{UNCATEGORIZED}}\n\nFor a complete list of changes, see the [full diff](${{RELEASE_DIFF}})",
"pr_template": "- ${{TITLE}} (#${{NUMBER}})",
"commit_template": "- ${{SUBJECT}}",
"empty_template": "No changes in this category"
"empty_template": "No changes in this category",
"categories_title": false
}
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ jobs:

- name: Generate Release Notes
id: changelog
uses: mikepenz/release-changelog-builder-action@v4
uses: mikepenz/release-changelog-builder-action@v5
with:
configuration: ".github/changelog-config.json"
commitMode: true
ignorePreReleases: false
#configuration: ".github/changelog-config.json"
mode: "HYBRID"
#ignorePreReleases: false
owner: "MoritzLaurer"
repo: "prompt_templates"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: "v${{ env.CURRENT_VERSION }}" # Use current version
body: ${{steps.changelog.outputs.changelog}}
Expand Down

0 comments on commit 6a4547c

Please sign in to comment.