Skip to content

ci: fix Node.js version for OIDC release + harden pipeline#8

Merged
gxkl merged 2 commits into
masterfrom
fix/release-node-version
Jul 15, 2026
Merged

ci: fix Node.js version for OIDC release + harden pipeline#8
gxkl merged 2 commits into
masterfrom
fix/release-node-version

Conversation

@gxkl

@gxkl gxkl commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Fixes the failed release run and applies pipeline-review follow-ups.

Release node version (the actual failure)

The release job set node-version: 20 but installed npm@latest (npm 12), which requires Node.js >= 22.22.2 — so Upgrade npm failed with EBADENGINE (run 29395807298). Node 20's bundled npm 10 also can't do OIDC trusted publishing (needs >= 11.5.1).

  • bump release job to Node.js 24
  • actions/checkout@v4 → v5, actions/setup-node@v4 → v6 (clears the Node 20 deprecation warning)

Hardening (from review)

  • release: add a concurrency group so two triggered releases can't race (in-progress not cancelled)
  • release: skip the version bump on dry_run so a dry run has no side effects
  • release: push to HEAD:${{ github.ref_name }} explicitly instead of HEAD
  • test: also run Node.js 20 and 22 (kept 14/16/18) — the package is released on Node 24 but CI only tested up to 18

Merging does not trigger a release (workflow_dispatch only). After merge, run the Release workflow with dry_run: true first to validate the pipeline, then with version_type: minor to cut 3.2.0 (requires the npm trusted publisher to be configured).

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@gxkl, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 24 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 636775b5-2969-4279-8abd-d7a530f0bf81

📥 Commits

Reviewing files that changed from the base of the PR and between 2d167ba and b9c62bd.

📒 Files selected for processing (2)
  • .github/workflows/nodejs.yml
  • .github/workflows/release.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/release-node-version

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gxkl gxkl force-pushed the fix/release-node-version branch from 5a15314 to a23e59b Compare July 15, 2026 07:03
@gxkl gxkl changed the title ci: use Node.js 22 and pin npm 11 for OIDC release ci: use Node.js 24 for OIDC release Jul 15, 2026
@gxkl gxkl force-pushed the fix/release-node-version branch from a23e59b to 54f10c1 Compare July 15, 2026 07:09
The release job set node-version 20 but installed npm@latest (npm 12),
which requires Node.js >= 22.22.2, so `npm install -g npm@latest` failed
with EBADENGINE. Node 20's bundled npm 10 also doesn't support OIDC
trusted publishing (needs >= 11.5.1).

Bump the release job to Node.js 24 and the checkout/setup-node actions
to v5/v6 so npm@latest installs cleanly and supports trusted publishing.
@gxkl gxkl force-pushed the fix/release-node-version branch from 54f10c1 to 7ec8529 Compare July 15, 2026 07:10
Follow-ups from a pipeline review:

- release: add a concurrency group so two triggered releases can't race,
  without cancelling an in-progress one
- release: skip the version bump on dry_run so a dry run has no side effects
- release: push to HEAD:${{ github.ref_name }} explicitly instead of HEAD
- test: also run Node.js 20 and 22 (kept 14/16/18); the package is released
  on Node 24 but CI only tested up to 18
@gxkl gxkl changed the title ci: use Node.js 24 for OIDC release ci: fix Node.js version for OIDC release + harden pipeline Jul 15, 2026
@gxkl gxkl requested a review from killagu July 15, 2026 07:24

@killagu killagu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gxkl gxkl merged commit 92fc0ff into master Jul 15, 2026
19 checks passed
@gxkl gxkl deleted the fix/release-node-version branch July 15, 2026 07:25
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.

2 participants