Skip to content

build: update all github actions away from deprecated node.js 20 #8674

@nbogie

Description

@nbogie

Increasing access

keeps the CI working smoothly, avoiding unexpected failures.

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

Feature enhancement details

To ensure the continued smooth running of the site's CI systems, all used github actions that currently run on node 20 should be updated to versions which run on node 24.

Why?

As per this notice from github blog,
"Node20 will reach end-of-life (EOL) in April of 2026. As a result we have started the deprecation process of Node20 for GitHub Actions."

More info:

For example, when the test job runs (example) the following warning is issued, in the "complete job" step:

Warning: Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, actions/upload-artifact@v4. 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.

Testing

Properly resolving this issue will be 2% code change and 98% doing thorough testing of the affected CI flows.

See also

There is a similar task to update the CI actions for the p5.js-website repo:
processing/p5.js-website#1248

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions