Skip to content

ci: move GitHub Actions off the deprecated Node 20 runtime (ODIAA-2337) - #29

Merged
amirhmoradi merged 1 commit into
mainfrom
odiaa-2337-actions-node24
Sep 27, 2026
Merged

amirhmoradi merged 1 commit into
mainfrom
odiaa-2337-actions-node24

Conversation

@amirhmoradi

Copy link
Copy Markdown
Contributor

Summary

The v1.2.1 release run warned that three actions still run on the deprecated Node 20 action runtime. This PR bumps each one to its latest node24 major:

Action Before After Runtime
actions/checkout v4 v7 node24
actions/setup-node v4 v7 node24
softprops/action-gh-release v2 v3 node24

Changed files: test.yml (CI), release.yml and sign-xpi.yml. The repo has no ci.yml; test.yml is the CI workflow.

OIDC / npm publish

  • setup-node v7 no longer exports a dummy NODE_AUTH_TOKEN (Remove dummy NODE_AUTH_TOKEN export actions/setup-node#1558). Our npm-publish job never sets a token, so npm ≥ 11.5.1 does the OIDC exchange itself. This matches the trusted-publisher example in setup-node's docs, which keeps registry-url and sets no token.
  • The job now sets package-manager-cache: false, as those docs recommend, so no restored cache runs next to the OIDC token.
  • checkout v7 blocks checking out fork PRs under pull_request_target/workflow_run. We use neither trigger.

Not changed

The Node versions we test and build on (node-version 20/22) stay the same. Only the runtime the actions themselves use changes.

Test plan

  • tests workflow is green on Node 20 and 22 (this PR)
  • Next tag: the release job creates the GitHub Release, and npm-publish publishes with provenance through OIDC

🤖 Generated with Claude Code

Bump actions/checkout v4 -> v7, actions/setup-node v4 -> v7 and
softprops/action-gh-release v2 -> v3 in test.yml, release.yml and
sign-xpi.yml. All three now run on node24.

setup-node v7 no longer exports a dummy NODE_AUTH_TOKEN, which matches
our OIDC trusted-publishing flow (no token is set). The npm-publish job
also sets package-manager-cache: false, as setup-node's trusted-publisher
docs recommend.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@amirhmoradi
amirhmoradi merged commit 6b83aff into main Sep 27, 2026
2 checks passed
@amirhmoradi
amirhmoradi deleted the odiaa-2337-actions-node24 branch September 27, 2026 21:57
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