Skip to content

Commit 3218050

Browse files
committed
chore(ci): fix ci
1 parent 9c01408 commit 3218050

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/create-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- tmp_hotfix_branch
99

1010
permissions:
11-
contents: read
11+
contents: write
1212
id-token: write
1313
env:
1414
IS_HOTFIX: ${{ github.ref == 'refs/heads/tmp_hotfix_branch' }}
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
ref: ${{ fromJSON('["tmp_hotfix_branch", "main"]')[env.IS_HOTFIX] }}
3232
fetch-depth: 0
33-
token: ${{ secrets.GITHUB_TOKEN }}
33+
token: ${{ secrets.GHACTIONS }}
3434

3535
- uses: ./.github/actions/set-up-git
3636
name: Set up git user
@@ -180,7 +180,7 @@ jobs:
180180
prerelease: ${{ steps.bumpVersion.outputs.isPrerelease }}
181181
tag: v${{ steps.bumpVersion.outputs.newVersion }}
182182
body: ${{ steps.generate_body.outputs.generatedReleaseNotes }}
183-
token: ${{ secrets.GITHUB_TOKEN }}
183+
token: ${{ secrets.GHACTIONS }}
184184
# This step is for pushing into the main only the version change, without anything else.
185185
# This is useful when user created a Hotfix, and we need to sync the version on main
186186
# if hotfix version is higher than latest stable and RC versions.
@@ -207,7 +207,7 @@ jobs:
207207
uses: actions/checkout@v4.2.2
208208
with:
209209
ref: main # always fetch from main branch
210-
token: ${{ secrets.GITHUB_TOKEN }}
210+
token: ${{ secrets.GHACTIONS }}
211211

212212
- name: Setup Node.js and Cache
213213
uses: ./.github/actions/nodejs

0 commit comments

Comments
 (0)