From 1e1d16c60b1979bae99ed0821fe04dca2c418556 Mon Sep 17 00:00:00 2001 From: LironEr Date: Fri, 12 Apr 2024 02:05:58 +0300 Subject: [PATCH] ci: fix permissions for release workflow & style changelog --- .github/workflows/release.yml | 4 ++- .releaserc | 47 ++++++++++++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b956b51..4b0bab2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,9 @@ on: workflow_dispatch: permissions: - contents: write + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests jobs: release: diff --git a/.releaserc b/.releaserc index 520f6dd..7b455f1 100644 --- a/.releaserc +++ b/.releaserc @@ -19,7 +19,52 @@ ] } ], - "@semantic-release/release-notes-generator", + [ + "@semantic-release/release-notes-generator", + { + "parserOpts": { + "noteKeywords": [ + "BREAKING CHANGE", + "BREAKING CHANGES", + "BREAKING" + ] + }, + "presetConfig": { + "types": [ + { + "type": "breaking", + "section": "❗ BREAKING CHANGES ❗", + "hidden": false + }, + { + "type": "feat", + "section": "✨ Features", + "hidden": false + }, + { + "type": "fix", + "section": "🐛 Fixes", + "hidden": false + }, + { + "type": "chore", + "section": "🔨 Misc.", + "hidden": false + }, + { + "type": "docs", + "section": "📝 Documentation", + "hidden": false + }, + { + "type": "refactor", + "section": "⚡️ Refactor", + "hidden": false + } + ] + } + } + ], "@semantic-release/github", "semantic-release-major-tag" ]