Skip to content

Commit 21ec2a9

Browse files
authored
Merge pull request #978 from mnfst/alerts
fix: use GitHub App token for Version Packages PR CI triggers
2 parents 6cd0155 + 3a0b961 commit 21ec2a9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/curvy-banks-take.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
release:
1414
runs-on: ubuntu-latest
1515
steps:
16+
- name: Generate GitHub App token
17+
id: app-token
18+
uses: actions/create-github-app-token@v1
19+
with:
20+
app-id: ${{ secrets.APP_ID }}
21+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
1622
- uses: actions/checkout@v4
1723
- uses: actions/setup-node@v4
1824
with:
@@ -29,7 +35,7 @@ jobs:
2935
version: npm run version-packages
3036
title: "chore: version packages"
3137
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3339
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3440
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3541
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)