Skip to content

Commit 6f9a7e5

Browse files
authored
Restore special token for release process (#771)
1 parent 32d006f commit 6f9a7e5

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@ jobs:
88
timeout-minutes: 2
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Create GH Token
12+
uses: actions/create-github-app-token@v1
13+
id: gh-token
14+
with:
15+
app-id: ${{ vars.GH_TOKEN_APP_ID }}
16+
private-key: ${{ secrets.GH_TOKEN_APP_PRIVATE_KEY }}
1117
- name: Checkout
1218
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
1321
- name: Setup Node
1422
uses: actions/setup-node@v4
1523
with:
@@ -20,6 +28,6 @@ jobs:
2028
- name: Semantic Release
2129
uses: ./.github/actions/semantic-release/
2230
with:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
GITHUB_TOKEN: ${{ steps.gh-token.outputs.token }}
2432
NPM: true
2533
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)