diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc92736..f095bb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,7 @@ jobs: - id: semantic_release uses: cycjimmy/semantic-release-action@v4 with: + semantic_version: 23 extra_plugins: | @semantic-release/changelog @semantic-release/commit-analyzer @@ -43,7 +44,7 @@ jobs: @semantic-release/git @semantic-release/github @semantic-release/release-notes-generator - conventional-changelog-conventionalcommits + conventional-changelog-conventionalcommits@7 semantic-release-license dry_run: true tag_format: v${version} @@ -89,6 +90,7 @@ jobs: - id: semantic-release uses: cycjimmy/semantic-release-action@v4 with: + semantic_version: 23 extra_plugins: | @semantic-release/changelog @semantic-release/commit-analyzer @@ -96,7 +98,7 @@ jobs: @semantic-release/git @semantic-release/github @semantic-release/release-notes-generator - conventional-changelog-conventionalcommits + conventional-changelog-conventionalcommits@7 semantic-release-license dry_run: ${{ inputs.dry_run }} tag_format: v${version} diff --git a/.releaserc.yml b/.releaserc.yml index 3da1d1e..f13569c 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -2,18 +2,33 @@ plugins: - - "@semantic-release/commit-analyzer" - - releaseRules: - - { breaking: true, release: major } - - { revert: true, release: patch } - - { type: feat, release: minor } - - { type: fix, release: patch } - - { type: revert, release: patch } - - { type: perf, release: patch } - - { type: docs, release: patch } - - { type: chore, release: patch } - - { type: refactor, release: minor } + - preset: conventionalcommits + presetConfig: + types: + - { type: feat, section: Features } + - { type: fix, section: Bug Fixes } + - { type: revert, section: Reverts } + - { type: perf, section: Performance Improvements } + - { type: docs, section: Documentation } + - { type: chore, section: Chores } + - { type: refactor, section: Code Refactoring } + + - { type: build, section: Build System, hidden: true } + - { type: ci, section: Continuous Integration, hidden: true } + - { type: style, section: Styles, hidden: true } + - { type: test, section: Tests, hidden: true } + releaseRules: + - { breaking: true, release: major } + - { revert: true, release: patch } + - { type: feat, release: minor } + - { type: fix, release: patch } + - { type: revert, release: patch } + - { type: perf, release: patch } + - { type: docs, release: patch } + - { type: chore, release: patch } + - { type: refactor, release: minor } - - { scope: release, release: false } + - { scope: release, release: false } parserOpts: noteKeywords: - BREAKING CHANGE