Skip to content

Commit acc5662

Browse files
authored
ci: use cotp release bot app to release and bypass ruleset checks (#558)
2 parents 52a8d6c + 5c98839 commit acc5662

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,22 @@ jobs:
88
semantic-release:
99
name: Release the application
1010
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
1611
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 }}
1718
- name: Checkout sources
1819
uses: actions/checkout@v4
19-
20+
with:
21+
fetch-depth: 0
22+
token: ${{ steps.generate_token.outputs.token }}
2023
- name: Install NodeJS
2124
uses: actions/setup-node@v4
2225
with:
23-
node-version: 20
26+
node-version: 22
2427

2528
- name: Install Semantic Release globally
2629
run: npm install -g semantic-release @semantic-release/git @semantic-release/exec @semantic-release/changelog
@@ -29,4 +32,4 @@ jobs:
2932
- name: Release with semantic versioning
3033
run: npx semantic-release
3134
env:
32-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
GH_TOKEN: ${{ steps.generate_token.outputs.token }}

0 commit comments

Comments
 (0)