Summary
The lint job in .github/workflows/lint-and-test.yml runs npm install ci instead of npm ci.
Why this is a problem
npm install ci does not perform a clean lockfile-based install. It is interpreted as npm install <package>, so the lint job is not using the intended CI install path and may run against a dependency tree that differs from the test job.
The test job in the same workflow already uses the correct command:
- lint job:
npm install ci
- test job:
npm ci
Location
.github/workflows/lint-and-test.yml
Suggested fix
Replace the lint step with:
That keeps lint/typecheck aligned with the lockfile and with the existing test job setup.
Summary
The lint job in
.github/workflows/lint-and-test.ymlrunsnpm install ciinstead ofnpm ci.Why this is a problem
npm install cidoes not perform a clean lockfile-based install. It is interpreted asnpm install <package>, so the lint job is not using the intended CI install path and may run against a dependency tree that differs from the test job.The test job in the same workflow already uses the correct command:
npm install cinpm ciLocation
.github/workflows/lint-and-test.ymlSuggested fix
Replace the lint step with:
That keeps lint/typecheck aligned with the lockfile and with the existing test job setup.