Skip to content

chore(ci): force Node.js 24 on snapcore actions#80

Merged
nelsonduarte merged 1 commit into
mainfrom
chore/upgrade-snap-actions-node24
Jun 5, 2026
Merged

chore(ci): force Node.js 24 on snapcore actions#80
nelsonduarte merged 1 commit into
mainfrom
chore/upgrade-snap-actions-node24

Conversation

@nelsonduarte
Copy link
Copy Markdown
Owner

Summary

GitHub Actions emitted a deprecation warning on the most recent publish.yml run:

Node.js 20 actions are deprecated. snapcore/action-build and snapcore/action-publish run on Node.js 20. Actions will be forced to Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed September 16th, 2026.

Today is 2026-06-05 — 11 days before the forced default.

Investigation

Looked for newer SHAs of both actions that target Node.js 24:

No SHA bump is possible without downgrading or moving off SHA pinning (against repo security policy).

Fix

Adds FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true' to the snap job, which is the workaround GitHub itself recommends in the deprecation notice. Inline comment marks this as TEMP with a TODO to remove once snapcore publishes a Node.js 24 release.

Validation

  • YAML parses (yaml.safe_load).
  • pytest: 195 passed, 1 failed (Flatpak pre-existing), 1 skipped — no regression.
  • No APP_VERSION bump.

Follow-up

Track:

When they merge and publish a tag (likely v2.x), bump the SHAs and remove the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var.

Urgency

Should merge before next publish.yml run (i.e., before next release is published). The v1.13.15 build is currently in progress; ideally this lands first so the v1.13.15 publish run is warning-free.

GitHub Actions deprecated Node.js 20 actions. From 2026-06-16 the runner
will force them to Node.js 24 by default, and the Node.js 20 runtime is
removed 2026-09-16. snapcore/action-build and snapcore/action-publish
still ship a `node20` runner (upstream migration PR opened 2026-04-05
not merged yet).

Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true on the snap job so both
pinned actions run under Node.js 24 during the transition. SHAs stay
pinned per repository security policy; once snapcore publishes a real
Node.js 24 release we bump the SHAs and drop the env var.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@nelsonduarte nelsonduarte merged commit 94d0e3f into main Jun 5, 2026
3 checks passed
@nelsonduarte nelsonduarte deleted the chore/upgrade-snap-actions-node24 branch June 5, 2026 18:13
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.

1 participant