Skip to content

Commit 34fd2f0

Browse files
authoredJan 13, 2024
ci(release): use github app token (#189)
1 parent 20d1df1 commit 34fd2f0

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed
 

‎.github/workflows/github-actions.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jobs:
5555
yarn
5656
yarn lint
5757
58-
semantic-release:
59-
name: Semantic release
58+
release:
59+
name: Release
6060
runs-on: ubuntu-latest
6161
needs: [test, lint]
6262
if: ${{ (github.ref == 'refs/heads/main') && (contains(fromJSON('["workflow_dispatch", "schedule"]'), github.event_name)) }}
@@ -67,6 +67,13 @@ jobs:
6767
pull-requests: write
6868

6969
steps:
70+
- name: Create GitHub App token 🔑
71+
id: create-app-token
72+
uses: tibdex/github-app-token@v2.1.0
73+
with:
74+
app_id: ${{ secrets.GH_APP_ID }}
75+
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
76+
7077
- name: Checkout 🛎️
7178
uses: actions/checkout@v4
7279
with:
@@ -88,5 +95,5 @@ jobs:
8895
- name: Release 🚀
8996
run: npx semantic-release
9097
env:
91-
GITHUB_TOKEN: ${{ secrets.PAT }}
98+
GITHUB_TOKEN: ${{ steps.create-app-token.outputs.token }}
9299
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.