Skip to content

Commit a0dddbe

Browse files
committed
ci: Add permissions to commitizen action
1 parent d19b1ad commit a0dddbe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/bump-version.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
if: "!startsWith(github.event.head_commit.message, 'bump:')"
1111
runs-on: ubuntu-latest
1212
name: "Bump version and create changelog with commitizen"
13+
permissions:
14+
contents: write
15+
packages: write
1316
steps:
1417
- name: Check out
1518
uses: actions/checkout@v3
@@ -22,9 +25,8 @@ jobs:
2225
github_token: ${{ secrets.GITHUB_TOKEN }}
2326
changelog_increment_filename: body.md
2427
- name: Release
25-
uses: softprops/action-gh-release@v1
28+
uses: softprops/action-gh-release@v2
2629
with:
2730
body_path: "body.md"
2831
tag_name: ${{ env.REVISION }}
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)