Skip to content

Commit 5226a48

Browse files
[Sync to prerelease] Update GitHub Actions for Node.js 24 compatibility (#1966)
* Update actions/checkout to v6 and actions/github-script to v8 GitHub is deprecating Node.js 20 for Actions runners, forcing Node.js 24 starting June 2, 2026. Update official GitHub Actions to Node 24-compatible versions across all workflow files. * Update third-party actions for Node.js 24 compatibility - korthout/backport-action: v3 -> v4 (node24) - stefanzweifel/git-auto-commit-action: v5 -> v7 (node24) The skip_checkout input in update-downloads.yml was removed as v6+ no longer switches branches internally (equivalent default behavior). * Update release-info composite action to Node 24 The bundled CJS code (node-fetch@2, hasha@5) is compatible with Node 24. (cherry picked from commit 5725511) Co-authored-by: Christophe Dervieux <christophe.dervieux@gmail.com>
1 parent c4164b0 commit 5226a48

9 files changed

Lines changed: 15 additions & 16 deletions

File tree

.github/workflows/actions/release-info/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ inputs:
2727
required: true
2828

2929
runs:
30-
using: "node20"
30+
using: "node24"
3131
main: "index.js"

.github/workflows/optimize-images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Check out repository
24-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2525
with:
2626
fetch-depth: 0
2727

@@ -55,7 +55,7 @@ jobs:
5555
done
5656
5757
- name: Commit optimized images
58-
uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5
58+
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7
5959
with:
6060
commit_message: "Optimize PNG images with oxipng"
6161
commit_user_name: github-actions[bot]

.github/workflows/port-to-prerelease.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
startsWith(github.event.comment.body, '/sync-prerelease')
2828
)
2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
3131

3232
- name: Create backport pull requests
3333
id: synced-pr
34-
# https://github.com/korthout/backport-action/releases/tag/v3.0.0
35-
uses: korthout/backport-action@7e7cb1977d64d20339e8fdec12c0a1a065371de7
34+
# https://github.com/korthout/backport-action/releases/tag/v4.2.0
35+
uses: korthout/backport-action@4aaf0e03a94ff0a619c9a511b61aeb42adea5b02
3636
with:
3737
cherry_picking: auto
3838
branch_name: sync-${pull_number}-to-${target_branch}
@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: Trigger deploy using a comment
5454
if: steps.synced-pr.outputs.was_successful == 'true'
55-
uses: actions/github-script@v7
55+
uses: actions/github-script@v8
5656
with:
5757
# special fine-grained token for issue comment trigger
5858
github-token: ${{ secrets.ISSUE_COMMENT_TRIGGER_PAT }}

.github/workflows/preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
runs-on: ubuntu-latest
6666
steps:
6767
- name: Check out repository
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@v6
6969
with:
7070
ref: refs/pull/${{ github.event.pull_request.number || github.event.issue.number }}/merge
7171

@@ -159,7 +159,7 @@ jobs:
159159

160160
- name: Create custom PR comment
161161
if: github.event.pull_request || github.event.issue.pull_request
162-
uses: actions/github-script@v7
162+
uses: actions/github-script@v8
163163
env:
164164
DEPLOY_URL: ${{ steps.netlify-deploy.outputs.deploy-url }}
165165
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Check out repository
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v6
3131
with:
3232
# if called from workflow_call event, checkout the ref otherwise use default
3333
ref: ${{ inputs.ref || '' }}

.github/workflows/test-algolia-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout Repo
10-
uses: actions/checkout@v4
10+
uses: actions/checkout@v6
1111
- name: Setup Ruby
1212
uses: ruby/setup-ruby@v1
1313
with:

.github/workflows/update-downloads.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
prerelease_version: ${{ steps.get-versions.outputs.prerelease_version }}
1515
steps:
1616
- name: Checkout Repo
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818
# with:
1919
# token: ${{ secrets.COMMIT_PAT }}
2020

@@ -38,13 +38,12 @@ jobs:
3838
3939
- name: Commit Changes to main branch
4040
id: auto-commit
41-
uses: stefanzweifel/git-auto-commit-action@v5
41+
uses: stefanzweifel/git-auto-commit-action@v7
4242
with:
4343
repository: .
4444
commit_user_name: Github Action Runner
4545
commit_user_email: runner@quarto.org
4646
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
47-
skip_checkout: true
4847

4948
- name: Cherry-pick change to prerelease branch
5049
id: cherry-pick-prerelease

.github/workflows/update-prerelease-reference.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout prerelease branch
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3030
with:
3131
ref: prerelease
3232

.github/workflows/upload-index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Repo
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414
- name: Setup Ruby
1515
uses: ruby/setup-ruby@v1
1616
with:

0 commit comments

Comments
 (0)