Skip to content

Commit 34c7d08

Browse files
committed
fix: use release token instead of github token in workflow
for automated releases
1 parent b0578d6 commit 34c7d08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy-image.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
steps:
2828
- name: Checkout repository
2929
uses: actions/checkout@v4
30+
with:
31+
token: ${{ secrets.RELEASE_TOKEN }}
32+
persist-credentials: false
3033

3134
- name: Setup Node.js
3235
uses: actions/setup-node@v4
@@ -56,4 +59,4 @@ jobs:
5659
- name: Create release
5760
run: npx semantic-release
5861
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

0 commit comments

Comments
 (0)