Skip to content

Commit cfedeaf

Browse files
authored
ci: use GitHub app for commits (#3373)
1 parent 6762429 commit cfedeaf

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/gh-pages.yml

+15-5
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,23 @@ jobs:
1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
steps:
14-
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
14+
- name: Generate GitHub App token
15+
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
16+
id: generate-token
17+
with:
18+
creds: ${{ secrets.GH_APP_CREDS }}
19+
export-git-user: true
20+
21+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
1522
with:
1623
submodules: true
1724
fetch-depth: 0
25+
token: ${{ steps.generate-token.outputs.token }}
1826

1927
- name: Use Node.js LTS
20-
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 #v.3.5.1
28+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
2129
with:
22-
node-version: 16.x
30+
node-version: 20.x
2331
cache: yarn
2432

2533
- name: Build
@@ -29,8 +37,10 @@ jobs:
2937
yarn docs
3038
3139
- name: Deploy
32-
uses: peaceiris/actions-gh-pages@v3
40+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
3341
with:
34-
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
github_token: ${{ steps.generate-token.outputs.token }}
3543
publish_dir: ./docs
3644
cname: js.electronforge.io
45+
user_name: ${{ env.GIT_COMMITTER_NAME }}
46+
user_email: ${{ env.GIT_COMMITTER_EMAIL }}

0 commit comments

Comments
 (0)