Repository navigation
ci: move GitHub Actions to their Node 24 majors - #9
Merged
Merged
Conversation
Node 20 reached end of life on 2026-04-30, and GitHub removes the Node 20 runtime opt-out on 2026-09-23. - docs.yml: actions/checkout v4 -> v7, actions/setup-python v5 -> v7, actions/setup-node v4 -> v7, actions/upload-pages-artifact v3 -> v5, actions/deploy-pages v4 -> v5 - docs.yml: the job's Node moves from "20" to "24" - .nvmrc and pyproject.toml [tool.sphinx-theme-builder] node-version: 20.11.0 -> 24.21.0, the current Node 24 LTS. sphinx-theme-builder builds the assets with its own nodeenv at the pyproject version during `pip install -e`, so the two pins move together - Add a grouped weekly github-actions Dependabot config Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
mmcky
had a problem deploying
to
github-pages
September 18, 2026 07:28 — with
GitHub Actions
Failure
There was a problem hiding this comment.
🟡 Changes recommended
CI currently uses a floating node-version: "24" while the repo pins 24.21.0 elsewhere, which can make builds non-reproducible and drift unexpectedly as new 24.x releases ship.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Updates the repository’s CI and build toolchain to Node 24 by moving the GitHub Actions used in the Pages documentation workflow onto their Node 24-backed majors, aligning the repo’s pinned Node version, and adding Dependabot automation to keep workflow action pins current going forward.
Changes:
- Bump GitHub Actions in
docs.ymlto newer majors (checkout@v7,setup-python@v7,setup-node@v7,upload-pages-artifact@v5,deploy-pages@v5). - Move the repo’s pinned Node version from 20.11.0 to 24.21.0 (
.nvmrcandpyproject.tomlsphinx-theme-builder config). - Add
.github/dependabot.ymlto automate GitHub Actions updates with grouped minor/patch vs major PRs.
File summaries
| File | Description |
|---|---|
pyproject.toml |
Updates sphinx-theme-builder’s pinned Node version to 24.21.0. |
.nvmrc |
Updates developer/local Node pin to 24.21.0. |
.github/workflows/docs.yml |
Moves workflow action majors to Node 24-backed versions and bumps CI Node major to 24. |
.github/dependabot.yml |
Adds Dependabot configuration to keep workflow action pins from falling behind. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
.nvmrc and sphinx-theme-builder's node-version in pyproject.toml both pin 24.21.0, but the docs workflow asked setup-node for any 24.x, so the Pages build could run a different Node patch from local builds. Reading .nvmrc keeps the three in step from one file. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
mmcky
had a problem deploying
to
github-pages
September 18, 2026 10:32 — with
GitHub Actions
Failure
mmcky
added a commit
to QuantEcon/quantecon-book-theme
that referenced
this pull request
Sep 18, 2026
* build: compile theme assets on Node 24 sphinx-theme-builder installs the Node pinned in pyproject.toml ([tool.sphinx-theme-builder] node-version) into .nodeenv/ and uses it for npm install and webpack in every wheel build: the PyPI release in tests.yml, the CI and docs installs, and local installs. That pin was still 20.18.0 after #401 moved setup-node and .nvmrc to Node 24, so the shipped assets were still compiled on Node 20. Move the pin to 24.21.0, the current Node 24 LTS (Krypton), the same pin QuantEcon/quantecon-sphinx-theme#9 set. .nvmrc moves from "24" to the same exact version, as that repository did, so nvm gives local development the Node the build uses. sphinx-theme-builder refuses a nodeenv whose node --version differs from the pin, so the two pins cannot drift silently in the build, only in .nvmrc. Built locally with python -m build and pip wheel . on both pins, the wheels' contents are identical, compiled CSS, JS and source maps included. The seven npm EBADENGINE warnings the Node 20.18.0 install printed (sass-loader 17 wants >= 22.11.0, among others) are gone. The troubleshooting example in docs/developer/setup.md now shows the mismatch error an existing .nodeenv/ will raise after this change. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * docs(changelog): name the two costs of the Node 24 pin A source build now needs a platform nodejs.org ships a Node 24 binary for, which excludes linux-armv7l and 32-bit Windows (both have Node 20.18.0 builds, neither has 24.21.0); the py3-none-any wheel is unaffected. And with .nvmrc pinned exactly, nvm use needs one nvm install per bump. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves every GitHub Actions pin in
docs.ymlonto its Node 24 major, moves the repository's own Node from 20 to 24, and adds a Dependabot config so the pins do not fall behind again. Node 20 reached end of life on 2026-04-30, and GitHub removes the runners' Node 20 opt-out on 2026-09-23. This is part of the Node 24 upgrade across the QuantEcon lecture and theme fleets; the owner decided on 2026-09-18 to keep this repository and bump it.Pins
docs.ymlactions/checkoutv4(v4.4.0, node20)v7(v7.0.1, node24)docs.ymlactions/setup-pythonv5(v5.6.0, node20)v7(v7.0.0, node24)docs.ymlactions/setup-nodev4(v4.4.0, node20)v7(v7.0.0, node24)docs.ymlactions/upload-pages-artifactv3(v3.0.1, composite wrappingupload-artifact@v4, node20)v5(v5.0.0, composite wrappingupload-artifactv7.0.0, node24)docs.ymlactions/deploy-pagesv4(v4.0.5, node20)v5(v5.0.1, node24)Each target's
action.ymlwas read at the new ref: the node actions declareruns.using: node24, and upload-pages-artifact v5 is a composite whose onlyuses:isactions/upload-artifactat the v7.0.0 SHA, which is node24.Node for the build itself
docs.ymlsetup-nodenode-version: "20"node-version-file: .nvmrc.nvmrc20.11.024.21.0pyproject.toml[tool.sphinx-theme-builder]node-version20.11.024.21.024.21.0 is the current Node 24 LTS (Krypton, released 2026-09-07), written in full to keep
.nvmrc's existing style. Thepyproject.tomlline is not a workflow pin, but it is the Node that actually compiles the theme's assets in CI:pip install -e ".[doc]"runs sphinx-theme-builder, which creates its own nodeenv at exactly that version and checks it matches. Moving.nvmrcwithout it would leave the two disagreeing and the build still on Node 20, so they move together.docs.ymlreads.nvmrcrather than naming a version of its own (87d7990, after review), so the Node that runsnpm ciand the webpack build is the same 24.21.0 as local development and sphinx-theme-builder. A floating"24"had resolved to 24.20.0 from the runner's tool cache.pyproject.tomlremains a separate pin that sphinx-theme-builder reads for itself, so it and.nvmrcstill have to move together on the next Node bump.What crossing these majors changes here
include-hidden-files: trueis set. Forsphinx-build -b html docs docs/_build/htmlthat drops only.buildinfoand the.doctrees/pickle cache, neither of which the site serves; the docs have no.nojekyllor.well-known(and an artifact deployment does not run Jekyll).pip-installinput, which is not used. setup-node v5 to v7 changes automatic caching (there is nopackageManagerfield, andcache: npmis already explicit), removesalways-authand stops exporting a placeholderNODE_AUTH_TOKEN; none of these is used.pull_request_targetorworkflow_run.docs.ymlreads no git credentials and uses neither trigger.pages: writeandid-token: writepermissions are unchanged.Dependabot
.github/dependabot.ymlchecksgithub-actionsweekly, in the grouped form QuantEcon/actions uses: one PR for minor and patch updates and one for majors, so at most two PRs a week. npm is left out of this PR.What this PR's CI proves
docs.ymlis this repository's only workflow and runs on push tomainandworkflow_dispatch, so this PR runs no check of its own. I dispatcheddocs.ymlonmaint/node24-actions: that exercises the build job (checkout, setup-python, setup-node and upload-pages-artifact, plus the sphinx-theme-builder asset build on Node 24.21.0). Thegithub-pagesenvironment only allows deployments frommain, so the deploy job is expected to be refused on the branch;deploy-pages@v5is proven only by the run after merge. The dispatch result is in the next section.Dispatch results (2026-09-18)
First run, 35319503664,
workflow_dispatchonmaint/node24-actions:The build job ran checkout v7, setup-python v7, setup-node v7 and upload-pages-artifact v5 (including its inner
upload-artifactv7.0.0), and uploaded thegithub-pagesartifact (1,900,067 bytes). The run carries no "Node.js 20 is deprecated" annotation; the 2026-09-04 run onmainlisted checkout@v4, setup-node@v4, setup-python@v5, upload-artifact@v4 and deploy-pages@v4. The editable install succeeded, which means sphinx-theme-builder's nodeenv came up on exactly Node 24.21.0, since its version check refuses any mismatch. In this first runsetup-noderesolved"24"to 24.20.0 from the runner's tool cache; that Node runsnpm ciand the webpack build, which compiled with the same single Sass legacy-API deprecation warning themainrun already had. The only other annotation is GitHub's notice thatubuntu-latestmoves to Ubuntu 26 from 2026-10-19, which is unrelated to this PR.Second run, 35335092926, on 87d7990 after the switch to
node-version-file: build passed in 56s and deploy was refused on the same environment rule.setup-nodelogged "Resolved .nvmrc as 24.21.0", downloaded 24.21.0 and reportednode: v24.21.0(npm 11.19.0), and thegithub-pagesartifact came to 1,900,068 bytes. Its only annotations are the same two: the refused deploy and the Ubuntu 26 notice.🤖 Generated with Claude Code