Conversation
Updates to actions to ensure they support node.js 24. GHA will default to this version of node.js in June 2026. This update will fix the following warning message: ``` Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@v4, fjogeleit/http-request-action@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ ```
http-request-action uses url.parse() which is being deprecated. Instead of waiting and hoping it is updated this replaces it and removes a dependency on node.js.
Fixes a couple minor issues: - TZ specified incorrectly - Add concurrency group to prevent parallel deployments - Cleaned up npm install and adding caching - Fix incorrect ID reference - Switch from v5.0.3 to v5 for cache actions to automatically get security updates.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Pages deployment workflow to prepare for GitHub Actions’ move to Node.js 24 by bumping action versions, removing a deprecated third-party Node-based HTTP action, and improving workflow behavior (e.g., concurrency).
Changes:
- Replace
fjogeleit/http-request-actionwith acurl-based header probe to derive the Zotero cache key. - Update multiple first-party actions (cache, checkout, setup-node, upload-pages-artifact) and switch Node to v24 with npm caching.
- Add workflow-level concurrency and adjust minor build/install details (e.g., TZ format, consolidated npm installs).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Paolo Amoroso <paolo.amoroso@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Paolo Amoroso <paolo.amoroso@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Paolo Amoroso <paolo.amoroso@gmail.com>
pamoroso
approved these changes
Mar 13, 2026
Member
pamoroso
left a comment
There was a problem hiding this comment.
The staging site looks fine.
I want to keep this flag in the file until I'm ready to merge into main. As I make updates and validate them on my staging site I want to be sure the changes work on node.js 24.
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.
On June 2, 2026 GitHub will be moving to Node.js 24. This PR updates several of the actions we use to versions that support Node.js 24. In addition, I replaced one action,
fjogeleit/http-request-actionwith a basiccurlcommand. The action was using a deprecated function and maintenance on the action appeared to be minimal. This removes the reliance on node.js and preserves the needed functionality.I also made a couple minor enhancements and potential bug fixes based on Copilot's recommendations.
There currently is an environment variable,
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24that needs to be removed prior to merging. This forces it to run with Node.js 24. I have the action currently deployed on my staging site. It all appears to be working correctly. I'll leave it running there to make sure I didn't miss anything.There are two actions that will need to be updated once new versions are released:
While they appear to run correctly on Node.js 24 I would prefer to have actions that are built with this version.