Skip to content

Update GitHub Actions to the latest versions to avoid Node20.js deprecation warnings#417

Merged
yantosca merged 1 commit intodevfrom
bugfix/github-actions-node20js
Mar 31, 2026
Merged

Update GitHub Actions to the latest versions to avoid Node20.js deprecation warnings#417
yantosca merged 1 commit intodevfrom
bugfix/github-actions-node20js

Conversation

@yantosca
Copy link
Copy Markdown
Contributor

@yantosca yantosca commented Mar 30, 2026

Name and Institution (Required)

Name: Bob Yantosca
Institution: Harvard + GCST

Describe the update

GitHub Actions is retiring Node20.js from all of its runners in June 2026:

gnu (Debug)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 will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 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/

Therefore we have updated all of the GitHub Actions workflow files to check out the latest version of each action.

Old version New version
actions/checkout@v4 actions/checkout@v6
actions/setup-micromamba@v2 actions/setup-micromamba@v3
actions/setup-python@v5 actions/setup-python@v6
actions/stale@v5 actions/stale@v10

We have also removed Python 3.9 from GitHub actions that test building python environments and have also added Python 3.14.

Expected changes

  • This is a no-diff-to-benchmark update that will only affect GitHub actions.
  • This will allow our GitHub Actions to proceed as normal after GitHub removes Node20.js support in June.
  • This will make our setup more future-proof against further GitHub Actions system changes.

@yantosca yantosca force-pushed the bugfix/github-actions-node20js branch 4 times, most recently from deb9d84 to 2d870d8 Compare March 30, 2026 21:40
@yantosca yantosca changed the title Update GitHub Actions to the latest versions Update GitHub Actions to the latest versions to avoid Node20.js deprecation warnings Mar 30, 2026
@yantosca yantosca requested a review from msulprizio March 30, 2026 21:43
@yantosca yantosca self-assigned this Mar 30, 2026
@yantosca yantosca added this to the 1.8.0 milestone Mar 30, 2026
@yantosca yantosca added category: Bug Fix Fixes a bug that was previously reported topic: GitHub Actions Pertaining to GitHub Actions workflows labels Mar 30, 2026
NOTE: GitHub is removing Node20.js from its GitHub Actions runners
in June 2026, thus necessitating version updates:

./github/workflows/build-gcpy-environment-py312.yml
./github/workflows/build-gcpy-environment-py313.yml
./github/workflows/build-rtd-environment.yml
- Changed checkout@v4 to checkout@v6
- Changed setup-micromamba@v1 to setup-micromamba@v3
- Removed Python 3.9 from the build matrix

.github/workflows/codeql.yml
- Changed checkout@v4 to checkout@v6
- Changed codeql-action/* from v3 to v4

.github/workflows/lint-ci-workflows.yml
.github/workflows/publish-python.yml
- Changed checkout@v4 to checkout@v6
- Changed setup-python@v5 to setup-python@v6

.github/workflows/stale.yml
- Changed stale@v5 to stale@v10

CHANGELOG.md
- Updated accordingly

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
@yantosca yantosca force-pushed the bugfix/github-actions-node20js branch from 2d870d8 to 438669b Compare March 30, 2026 22:20
@yantosca yantosca merged commit 49f2c2c into dev Mar 31, 2026
18 checks passed
@yantosca yantosca deleted the bugfix/github-actions-node20js branch March 31, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: Bug Fix Fixes a bug that was previously reported topic: GitHub Actions Pertaining to GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants