File tree Expand file tree Collapse file tree 2 files changed +100
-92
lines changed
Expand file tree Collapse file tree 2 files changed +100
-92
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,17 @@ jobs:
2929 runs-on : ubuntu-latest
3030
3131 steps :
32- - name : Checkout
33- uses : actions/checkout@v3
32+ - name : Generate bot token
33+ uses : actions/create-github-app-token@v1
34+ id : app_token
35+ with :
36+ app-id : ${{ secrets.BOT_ID }}
37+ private-key : ${{ secrets.BOT_SK }}
38+
39+ - uses : actions/checkout@v4
3440 with :
3541 fetch-depth : 0
42+ token : ${{ steps.app_token.outputs.token }}
3643
3744 - name : Use Node.js 20.x
3845 uses : actions/setup-node@v3
@@ -52,13 +59,13 @@ jobs:
5259 if : ${{ github.ref_name == 'main' && inputs.production_release != 'true' }}
5360 run : ' npx semantic-release'
5461 env :
55- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62+ GITHUB_TOKEN : ${{ steps.app_token.outputs.token }}
5663
5764 - name : Create Release - Prod
5865 if : ${{ github.ref_name == 'main' && inputs.production_release == 'true' }}
5966 run : ' npx semantic-release --branches main'
6067 env :
61- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68+ GITHUB_TOKEN : ${{ steps.app_token.outputs.token }}
6269
6370 - name : Publish to Marketplace - Prod
6471 if : ${{ github.ref_name == 'main' && inputs.production_release == 'true' }}
You can’t perform that action at this time.
0 commit comments