fix(action): make CI reports deterministic - #1670
Conversation
📦 GitHub Action release recommendedThis PR changes the React Doctor GitHub Action's release surface:
The composite action is versioned independently from the npm packages, so it After merging, cut the tag from the merge commit on git checkout main && git pull --ff-only
merge_commit=$(git rev-parse HEAD)
git tag -a v2.2.9 "$merge_commit" -m "react-doctor action v2.2.9"
git tag -fa v2 "$merge_commit" -m "react-doctor action v2 (floating major -> v2.2.9)"
git push origin v2.2.9
git push --force origin v2 # moves only the floating major pointerThis bump can also be performed automatically on merge — set the repo |
commit: |
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
Interactive terminal E2ETerminal Control verified the built CLI at
|
Why
React Doctor's CI surfaces had three concrete reliability failures:
HEAD, so base-branch drift could be reported as PR-authored changes (v2 changed-file discovery includes base-branch drift from PR merge checkout #1446)The user job is for CI to produce a complete report scoped to the pull request. Success is the disappearance of the invalid-report signature plus parity between local and API changed-file discovery. Roll this back if either signal regresses.
What changed
--json-outpathThis does not add or change Action inputs, outputs, telemetry, or npm package APIs. It carries forward the focused base/head correction from #1447 without that draft's broader test rewrite.
Validation
nr test— 12/12 tasks; 2,493 React Doctor tests passed, 24 skippednr lintnr typechecknr format:checknr smoke:json-reportv2.2.8→v2.2.9No npm changeset is needed because the GitHub Action is versioned independently. After review and merge, releasing
v2.2.9and movingv2require separate explicit approval; this PR does not create or move tags.