File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,12 +19,19 @@ jobs:
1919 conventional-changelog-conventionalcommits
2020 env :
2121 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22-
22+
23+ - name : Get token
24+ if : steps.semantic.outputs.new_release_published == 'true'
25+ id : get_token
26+ uses : actions/create-github-app-token@v1
27+ with :
28+ app-id : ${{ secrets.APP_ID }}
29+ private-key : ${{ secrets.APP_SECRET }}
30+
2331 - name : Commit changes
2432 if : steps.semantic.outputs.new_release_published == 'true'
2533 env :
26- GITHUB_TOKEN : ${{ steps.GITHUB_TOKEN }}
27- GH_TOKEN : ${{ github.token }}
34+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
2835 FILE_TO_COMMIT : CHANGELOG.md
2936 DESTINATION_BRANCH : ${{ github.ref }}
3037 run : |
Original file line number Diff line number Diff line change 11module . exports = {
2- branches : [ "main " , "vnext" ] ,
2+ branches : [ "v2 " , "vnext" ] ,
33 plugins : [
44 "@semantic-release/commit-analyzer" ,
55 "@semantic-release/release-notes-generator" ,
You can’t perform that action at this time.
0 commit comments