Skip to content

Commit

Permalink
chore: Switch to conventional commit style for semantic releases
Browse files Browse the repository at this point in the history
Signed-off-by: Sietze van Buuren <s.van.buuren@gmail.com>
  • Loading branch information
swvanbuuren committed Jan 27, 2025
1 parent ef92177 commit 1906a05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm i -D conventional-changelog-conventionalcommits
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 8 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
{
"branches": ["master", "next"],
"plugins": [
"@semantic-release/commit-analyzer",
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "angular",
"preset": "conventionalcommits",
"presetConfig":
{
"types": [
{"type": "feat", "section": "✨ New Features"},
{"type": "fix", "section": "🐛 Bug Fixes"},
{"type": "chore", "section": "🔧 Chore"},
{"type": "ci", "section": "👷 Chore"},
{"type": "build", "section": "👷 Build"},
{"type": "docs", "section": "📝 Documentation"},
{"type": "style", "section": "🎨 Style"},
{"type": "refactor", "section": "♻️ Refactors"},
Expand Down

0 comments on commit 1906a05

Please sign in to comment.