File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,27 +6,29 @@ name: Release
66 - completed
77 branches :
88 - main
9- permissions :
10- contents : read # for checkout
119jobs :
1210 release :
1311 if : github.event.workflow_run.conclusion == 'success'
14- permissions :
15- contents : write # to be able to publish a GitHub release
16- issues : write # to be able to comment on released issues
17- pull-requests : write # to be able to comment on released pull requests
18- id-token : write # to enable use of OIDC for npm provenance
1912 name : release
2013 runs-on : ubuntu-latest
2114 steps :
15+ - name : Generate Token
16+ id : generate_token
17+ uses : actions/create-github-app-token@v1
18+ with :
19+ app-id : ${{ secrets.BOT_APP_ID }}
20+ private-key : ${{ secrets.BOT_APP_PRIVATE_KEY }}
21+
2222 - name : Checkout
23- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
23+ uses : actions/checkout@v4
2424 with :
2525 ref : ${{ github.event.workflow_run.head_sha }}
26- persist-credentials : false
26+ fetch-depth : 0
27+ token : ${{ steps.generate_token.outputs.token }}
28+
2729 - name : Semantic Release
2830 id : semantic
29- uses : cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
31+ uses : cycjimmy/semantic-release-action@v4
3032 with :
3133 tag_format : ${version}
3234 branches : |
3941 @semantic-release/git
4042 conventional-changelog-conventionalcommits
4143 env :
42- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ GITHUB_TOKEN : ${{ steps.generate_token.outputs.token }}
You can’t perform that action at this time.
0 commit comments