Skip to content

Commit 669c65f

Browse files
mmckyclaude
andauthored
ci: move GitHub Actions to their Node 24 majors (#82)
* ci: move GitHub Actions to their Node 24 majors Node 20 reached end-of-life on 2026-04-30 and GitHub's own actions now ship node24 majors. Moves every pin in ci.yml and data-url-guard.yml to its current major, each of which declares node24 in its action.yml (for the composite upload-pages-artifact, its inner upload-artifact v7.0.0 does): - actions/checkout v4 -> v7 - actions/setup-node v4 -> v7 - actions/github-script v7 -> v9 - actions/upload-pages-artifact v3 -> v5 - actions/deploy-pages v4 -> v5 Also moves the job's own Node from 20.x (end-of-life) to 24, and adds a grouped weekly github-actions Dependabot config so pins stay current. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * ci: quote the Node version passed to setup-node Matches the quoted '24' used across the rest of the fleet's Node 24 move. Behaviour is unchanged: setup-node treats a bare major as a semver range and resolves the latest 24.x, as 20.x did before. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
1 parent 0bdf101 commit 669c65f

3 files changed

Lines changed: 26 additions & 7 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Keeps the GitHub Actions pins in .github/workflows/ on current majors.
2+
# Two groups, as QuantEcon/actions does, so updates land as at most two PRs a
3+
# week: minor and patch updates together, and major updates on their own.
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: /
8+
schedule:
9+
interval: weekly
10+
open-pull-requests-limit: 10
11+
commit-message:
12+
prefix: "⬆️"
13+
groups:
14+
github-actions:
15+
patterns: ["*"]
16+
update-types: [minor, patch]
17+
github-actions-major:
18+
patterns: ["*"]
19+
update-types: [major]

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
steps:
3434
- name: Checkout current branch
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v7
3636
with:
3737
ref: ${{ github.head_ref }}
3838
token: ${{ env.GH_TOKEN }}
@@ -45,9 +45,9 @@ jobs:
4545
echo "PR number: ${{ github.event.number }}"
4646
echo "Commit SHA: ${{ github.sha }}"
4747
48-
- uses: actions/setup-node@v4
48+
- uses: actions/setup-node@v7
4949
with:
50-
node-version: 20.x
50+
node-version: '24'
5151

5252
- name: Install MyST Markdown CLI
5353
run: |
@@ -71,15 +71,15 @@ jobs:
7171
myst build --html
7272
7373
- name: Upload build output
74-
uses: actions/upload-pages-artifact@v3
74+
uses: actions/upload-pages-artifact@v5
7575
with:
7676
path: './lectures/_build/html'
7777

7878
# Deploy to GitHub Pages when pushing to main
7979
- name: Deploy to GitHub Pages
8080
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
8181
id: deployment
82-
uses: actions/deploy-pages@v4
82+
uses: actions/deploy-pages@v5
8383

8484
- name: Install Netlify CLI
8585
if: github.event_name == 'pull_request'
@@ -124,7 +124,7 @@ jobs:
124124

125125
- name: Post PR Comment with Preview Link
126126
if: github.event_name == 'pull_request'
127-
uses: actions/github-script@v7
127+
uses: actions/github-script@v9
128128
with:
129129
script: |
130130
const deployUrl = `${{ steps.netlify-deploy.outputs.deploy_url }}`;

‎.github/workflows/data-url-guard.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
permissions:
2424
contents: read
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v7
2727
- name: No data-lectures read on the LFS media host
2828
run: |
2929
# media.githubusercontent.com is the LFS *media* endpoint and routes

0 commit comments

Comments
 (0)