Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/react-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
node-version: "22.18.0"
- name: Install library deps
run: npm ci
run: npm i --no-audit --no-fund --package-lock=false

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Important Issue: Replacing npm ci with npm i --package-lock=false undermines CI reproducibility. npm ci exists precisely to enforce a clean, deterministic install from the lockfile — which is what CI should be doing. Using npm i --package-lock=false instead means dependencies can silently resolve to different (potentially breaking or vulnerable) versions on each run.

The root cause here is that npm ci was failing, likely because the package-lock.json is out of sync with package.json, or the lockfile does not exist. The correct fix is to identify and resolve that mismatch rather than bypassing the lockfile altogether.

If the intent is to allow installing the latest compatible versions of deps for testing against different React versions, a more explicit and intentional approach would be to document this decision and use a separate package.json install step that updates only the peer dependency (React) before running npm ci on the rest — or to rely on the already-present npm ci --no-audit --no-fund in the fixture install step (line 39) which already correctly uses npm ci.

Suggested fix: Investigate why npm ci was failing (likely a stale or missing package-lock.json) and fix the lockfile rather than bypassing it. If dynamic resolution is truly required for this step, add a comment explaining the rationale.

- name: Build library
run: npm run compile
- name: Pack library
Expand Down
Loading