Skip to content

Commit e98b802

Browse files
committed
fix(ci): added missing write permission in the github release job
1 parent 74e435e commit e98b802

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ jobs:
399399
needs: [publish_to_pypi, publish]
400400
runs-on: ubuntu-latest
401401
if: startsWith(github.ref, 'refs/tags/v')
402+
permissions:
403+
contents: write
402404
steps:
403405
- name: Checkout code
404406
uses: actions/checkout@v4
@@ -431,6 +433,6 @@ jobs:
431433
name: "Release ${{ env.latest_tag }}"
432434
body: ${{ steps.get_release_notes.outputs.notes }}
433435
draft: false
434-
prerelease: contains(github.ref, 'alpha') || contains(github.ref, 'beta')
436+
prerelease: contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc')
435437
env:
436438
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)