Skip to content

Commit 4459e4e

Browse files
committed
fix(actions): use personal access token for creating a release
1 parent c162551 commit 4459e4e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ on:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17-
permissions:
18-
contents: write
1917
steps:
2018
- uses: actions/checkout@v4
2119
- uses: oven-sh/setup-bun@v2
@@ -29,8 +27,8 @@ jobs:
2927
with:
3028
files: dist/*
3129
generate_release_notes: true
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
# Use PAT as it sends a release event, built in token doesn't
31+
token: ${{ secrets.RELEASE_TOKEN }}
3432

3533
publish:
3634
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)