diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57189dd..375c107 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + issues: write + pull-requests: write outputs: new_release_published: ${{ steps.semantic.outputs.new_release_published }} new_release_version: ${{ steps.semantic.outputs.new_release_version }} @@ -36,10 +38,11 @@ jobs: - name: Create Git tag + GitHub release id: semantic - uses: cycjimmy/semantic-release-action@v4 + uses: cycjimmy/semantic-release-action@v5.0.2 with: extra_plugins: | @semantic-release/commit-analyzer + conventional-changelog-conventionalcommits @semantic-release/release-notes-generator @semantic-release/github env: diff --git a/.releaserc.json b/.releaserc.json index e76ac67..a5ecc43 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -38,7 +38,44 @@ ] } ], - "@semantic-release/release-notes-generator", + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits", + "presetConfig": { + "types": [ + { + "type": "build", + "section": "Build" + }, + { + "type": "chore", + "section": "Chores" + }, + { + "type": "ci", + "section": "CI" + }, + { + "type": "docs", + "section": "Docs" + }, + { + "type": "refactor", + "section": "Refactors" + }, + { + "type": "style", + "section": "Style" + }, + { + "type": "test", + "section": "Tests" + } + ] + } + } + ], "@semantic-release/github" ] }