Commit a2fd492 1 parent 33366a0 commit a2fd492 Copy full SHA for a2fd492
File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,25 @@ jobs:
19
19
runs-on : ubuntu-latest
20
20
if : ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
21
21
steps :
22
+ - name : generate token
23
+ id : generate_token
24
+ uses : tibdex/github-app-token@v1
25
+ with :
26
+ app_id : ${{ secrets.RELEASE_BOT_APP_ID }}
27
+ private_key : ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
22
28
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
23
29
with :
30
+ persist-credentials : false
24
31
fetch-depth : 0
32
+ token : ${{ steps.generate_token.outputs.token }}
25
33
- uses : actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
26
34
with :
27
35
cache : npm
28
36
node-version : lts/*
29
37
- run : npm ci
30
38
- run : npx semantic-release
31
39
env :
32
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ GITHUB_TOKEN : ${{ steps.generate_token.outputs.token }}
33
41
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
34
42
GIT_AUTHOR_NAME : ${{ vars.RELEASE_BOT_GIT_AUTHOR_NAME }}
35
43
GIT_AUTHOR_EMAIL : ${{ vars.RELEASE_BOT_GIT_AUTHOR_EMAIL }}
You can’t perform that action at this time.
0 commit comments