File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 8
8
semantic-release :
9
9
name : Release the application
10
10
runs-on : ubuntu-latest
11
- permissions :
12
- contents : write # Permit release creation
13
- issues : write # Write on released issues
14
- pull-requests : write # Write on released PRs
15
- actions : write # Trigger deploy action
16
11
steps :
12
+ - name : Generate Bot token used to release
13
+ id : generate_token
14
+ uses : tibdex/github-app-token@v1
15
+ with :
16
+ app_id : ${{ secrets.RELEASE_APP_ID }}
17
+ private_key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
17
18
- name : Checkout sources
18
19
uses : actions/checkout@v4
19
-
20
+ with :
21
+ fetch-depth : 0
22
+ token : ${{ steps.generate_token.outputs.token }}
20
23
- name : Install NodeJS
21
24
uses : actions/setup-node@v4
22
25
with :
23
- node-version : 20
26
+ node-version : 22
24
27
25
28
- name : Install Semantic Release globally
26
29
run : npm install -g semantic-release @semantic-release/git @semantic-release/exec @semantic-release/changelog
29
32
- name : Release with semantic versioning
30
33
run : npx semantic-release
31
34
env :
32
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ GH_TOKEN : ${{ steps.generate_token.outputs.token }}
You can’t perform that action at this time.
0 commit comments