Skip to content

Commit 2dd2875

Browse files
authored
Add GitHub App token generation to release workflow
1 parent 92636d0 commit 2dd2875

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
fetch-depth: 0
2727
persist-credentials: false
2828

29+
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42
30+
id: app-token
31+
with:
32+
app-id: ${{ vars.PRIMER_APP_ID_SHARED }}
33+
private-key: ${{ secrets.PRIMER_APP_PRIVATE_KEY_SHARED }}
34+
2935
- name: Set up Node.js
3036
uses: actions/setup-node@v6
3137
with:
@@ -42,7 +48,7 @@ jobs:
4248
# This expects you to have a script called release which does a build for your packages and calls changeset publish
4349
publish: npm run release
4450
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
4652

4753
release-canary:
4854
name: Canary

0 commit comments

Comments
 (0)