Skip to content

Move the workflow actions off deprecated Node 20 - #104

Merged
ctgnz merged 1 commit into
masterfrom
chore/101-actions-node24
Sep 25, 2026
Merged

ctgnz merged 1 commit into
masterfrom
chore/101-actions-node24

Conversation

@ctgnz

@ctgnz ctgnz commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Closes #101.

The 1.5.0 release run warned on every job:

Node.js 20 is deprecated. The following actions target Node.js 20 but are being
forced to run on Node.js 24: actions/checkout@v4

Forced, so nothing fails today — until the forcing stops.

action was now Node 24 from
actions/checkout v4 (×3) v7 v5
actions/upload-artifact v4 v7 v6
actions/setup-java v5 unchanged v5 — already fine
ncipollo/release-action v1 unchanged already node24

The version that fixes it is not the obvious one

checkout moved to Node 24 in v5, but upload-artifact's v5 still runs on Node 20 — its release notes say v5 had "preliminary support" and the runtime only actually moved in v6.

So the obvious reading of the issue — bump everything to v5 — would have left upload-artifact still on the deprecated runtime, and still not warning about it, since GitHub flagged only checkout in that run. Worth knowing when the same fix gets applied to the repositories #102 creates.

Why the current major rather than the minimum

What changed in between is credential handling and an ESM upgrade in checkout, an optional archive parameter in upload-artifact, and v7 blocking fork checkouts for pull_request_target and workflow_run — triggers neither workflow uses. Nothing that touches how they are called here, and it buys the longest run before the next deprecation.

Care taken

Both submodules: recursive options are untouched. They are what stop the reactor building green and shipping jmsfx-server without the brand stylesheet, since Maven skips a missing resource directory with only a warning.

These majors require a minimum Actions runner version. Immaterial on GitHub-hosted runners, which are kept current, but it would matter to a self-hosted one.

Verification

maven.yml runs on pull requests to master, so this PR exercises checkout@v7 on its own. release.yml's two checkouts and the artifact upload need a workflow_dispatch run against this branch — happy to trigger one, or it can wait for the 2.0.0 tag, since the manual path leaves the bundles as artifacts without touching a release.

🤖 Generated with Claude Code

The 1.5.0 release run warned on every job that actions/checkout@v4 targets
Node 20 and was being forced onto Node 24. Forced, so nothing failed - but only
until the forcing stops.

checkout goes v4 -> v7 and upload-artifact v4 -> v7, both at their current major.

The version that fixes it is not the obvious one for upload-artifact.
checkout moved to Node 24 in v5, but upload-artifact's v5 only had preliminary
support and still ran on Node 20 by default; v6 is where it actually moved. So
"bump everything to v5" would have left one of the two still deprecated, and
still not warning about it, since GitHub flagged only checkout in that run.

Going to the current major rather than the minimum that fixes it. What changed
in between is credential handling and an ESM upgrade in checkout, an optional
archive parameter in upload-artifact, and v7 blocking fork checkouts for
pull_request_target and workflow_run - triggers neither workflow uses. Nothing
that touches how these are called here, and it buys the longest run before the
next deprecation.

Both submodules: recursive options are untouched. They are what stop the reactor
building green and shipping jmsfx-server without the brand stylesheet, since
Maven skips a missing resource directory with only a warning.

Left alone deliberately: setup-java stays on v5, which #66 moved it to and which
already targets Node 24 - v6 exists but there is nothing to fix. ncipollo's
release-action@v1 is already node24 too.

These majors require a minimum runner version. Immaterial on GitHub-hosted
runners, which are kept current, but it would matter to a self-hosted one.

Closes #101

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ctgnz
ctgnz merged commit 19ed00d into master Sep 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflows: actions/checkout@v4 is being forced off deprecated Node 20

1 participant