Skip to content

fix(ci): upgrade Node to 22 and actions to v4#113

Merged
ilhan007 merged 1 commit into
mainfrom
fix/ci-node-upgrade
May 15, 2026
Merged

fix(ci): upgrade Node to 22 and actions to v4#113
ilhan007 merged 1 commit into
mainfrom
fix/ci-node-upgrade

Conversation

@ilhan007
Copy link
Copy Markdown
Contributor

Summary

The CI was failing with:

Cannot find module @rollup/rollup-linux-x64-gnu

This is a known npm bug where optional native dependencies (like Rollup's platform-specific binaries) are not correctly resolved when using older Node.js versions with a stale lockfile on Linux runners.

Changes

  • actions/checkout: v2.4.0 / v3v4 (all workflows)
  • actions/setup-node: v2.4.1 / v3v4 (all workflows)
  • Node.js version: 2022 (all workflows)

Why this fixes the issue

Node 22 ships with npm 10.x which correctly handles optional peer dependencies and platform-specific packages like @rollup/rollup-linux-x64-gnu. The updated GitHub Actions versions also provide better caching and compatibility with modern runners.

Affected workflows

  • .github/workflows/ci.yml
  • .github/workflows/deploy.yml
  • .github/workflows/lint.yml

Note

The package-lock.json was not regenerated in this PR. If the issue persists after this change, regenerating the lockfile with Node 22 locally would be the next step.

The CI was failing with "Cannot find module @rollup/rollup-linux-x64-gnu"
due to a known npm bug with optional dependencies on older Node versions.

Changes:
- Upgrade actions/checkout from v2/v3 to v4 in all workflows
- Upgrade actions/setup-node from v2/v3 to v4 in all workflows
- Upgrade Node.js from 20 to 22 in all workflows

The rollup native module resolution issue is resolved by using Node 22
which handles optional peer dependencies correctly.
@ilhan007 ilhan007 merged commit b5f14c0 into main May 15, 2026
3 checks passed
@ilhan007 ilhan007 deleted the fix/ci-node-upgrade branch May 15, 2026 07:12
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