Skip to content

fix(ci): align npm to packageManager to unblock npm ci - #169

Merged
nerdchanii merged 1 commit into
mainfrom
fix/ci-npm-alignment
Aug 10, 2026
Merged

fix(ci): align npm to packageManager to unblock npm ci#169
nerdchanii merged 1 commit into
mainfrom
fix/ci-npm-alignment

Conversation

@nerdchanii

Copy link
Copy Markdown
Owner

The CI runner ships npm 10.x; its npm ci misreads the npm-11 lockfile (react@18.3.1 missing), failing both React 18 and 19 matrix jobs. main has been red since the React 19 switch.

Install the packageManager-declared npm (11.12.1) before npm ci. Bump actions/setup-node v6 → v7.

Note: editing the workflow file suppresses pull_request CI, so this is validated by the main push run after merge (matches the local npm 11 verification already done in #167).

The CI runner's bundled npm 10.x cannot read the npm-11 lockfile:
`npm ci` fails with a false "react@18.3.1 missing from lock file" on
both the React 18 and 19 matrix jobs, leaving main red since the
React 19 switch.

Install the packageManager-declared npm (11.12.1) before `npm ci`.
Also bump actions/setup-node v6 -> v7.
@nerdchanii
nerdchanii merged commit 691377c into main Aug 10, 2026
2 checks passed
@nerdchanii
nerdchanii deleted the fix/ci-npm-alignment branch August 10, 2026 02:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 142b9bd920

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
Comment on lines +25 to +26
- name: Align npm to packageManager
run: npm install -g npm@11.12.1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Align npm in the Pages workflow too

On every push to main, .github/workflows/pages.yml still selects Node 20 and immediately runs npm ci without upgrading its bundled npm 10.x. Because that job consumes the same npm-11-generated lockfile identified here as incompatible with npm 10, the Pages deployment will continue failing before npm run docs:build; apply the package-manager alignment to that workflow as well.

Useful? React with 👍 / 👎.

Comment thread .github/workflows/ci.yml
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep setup-node on an existing major

actions/setup-node@v7 does not identify a released action version; this repository's Dependabot history upgraded setup-node to the available v6 while its other workflows also remain on v6. Consequently, every CI matrix job will fail while resolving the action, before the new npm-alignment step can run, so keep this reference on v6 unless a real v7 release is available.

Useful? React with 👍 / 👎.

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