Skip to content

ci: bump checkout and setup-node, verify a release on npm - #35

Merged
marek-e merged 3 commits into
mainfrom
ci/bump-checkout-setup-node
Nov 25, 2026
Merged

marek-e merged 3 commits into
mainfrom
ci/bump-checkout-setup-node

Conversation

@marek-e

@marek-e marek-e commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Every CI and release run warned that actions/checkout and actions/setup-node target Node.js 20 and are forced onto Node 24. This moves both to their current major, pinned by commit as before.

-actions/checkout@34e1148…   # v4.3.1
+actions/checkout@3d3c42e…   # v7.0.1
-actions/setup-node@49933ea… # v4.4.0
+actions/setup-node@949feb2… # v7.1.0

Both files change: ci.yml and release.yml.

What the newer majors change, checked against their release notes:

  • Both actions run on Node 24 natively.
  • setup-node v5 caches automatically when package.json names a package manager. Ours names none, and the jobs that install already ask for cache: npm.
  • setup-node v7 stops exporting a placeholder NODE_AUTH_TOKEN. The publish job signs in through trusted publishing and never used it.
  • checkout v7 refuses fork PR checkouts under pull_request_target and workflow_run. No workflow here uses either trigger.

The publish job gets package-manager-cache: false, because it has no checkout and nothing to cache.

It also adds a verify job at the end of release.yml, which runs after a successful publish:

verify
  wait until `npm view cc-tap@<version>` answers     # fails after 15 minutes
  npm pack cc-tap@<version>                          # only once the version is listed
  compare its sha256 with the tarball CI built
  smoke test the downloaded tarball
  write the wait time to the run summary

The 0.12.0 release showed why. npm pointed latest at 0.12.0 about four minutes before the version could be installed, and npx cc-tap failed in between. The job makes each release measure that window and fails if a published version does not install. docs/RELEASING.md gains one step describing it.

Evidence

  • Before, from the v0.12.0 release run:
    ##[warning]Node.js 20 is deprecated. The following actions target Node.js 20 but are being
    forced to run on Node.js 24: actions/checkout@34e1148…, actions/setup-node@49933ea…
    npm warn Unknown user config "always-auth". This will stop working in the next major version of npm.
    
  • After: the CI run on this PR exercises ci.yml. Check its annotations for the Node 20 warning.
  • The verify steps, run locally against the published 0.12.0:
    listed after 1s
    built     50a4ec5e…c4bd8a9   (artifact of the release run)
    published 50a4ec5e…c4bd8a9   (npm pack cc-tap@0.12.0)
    smoke test passed: dashboard up on http://127.0.0.1:4319, 156 demo sessions served
    
    npm view on a version that does not exist exits 1, which is what the wait loop relies on.
  • Not run: the build, publish and verify jobs of release.yml as jobs. They only run for a release. I expect the always-auth warning to go with the old setup-node, and the next release will show whether it did.

Merge Danger

Door: two-way

Blast Radius: CI

A problem in the new actions would show as a red CI run on this PR. The publish job is the part this PR cannot test before the next release.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T17:18:38.063959Z b4394e6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@marek-e marek-e changed the title ci: run checkout and setup-node on their Node 24 releases ci: bump checkout and setup-node, verify a release on npm Nov 25, 2026
@marek-e
marek-e merged commit cde79fd into main Nov 25, 2026
3 checks 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.

1 participant