fix(ci): scope pnpm hook to package packing - #475
Conversation
Move the publishing-only pnpm hook out of the repository root so dependency updates no longer invalidate the frozen lockfile. Load it explicitly during package packing, update related repository automation, and use the validated pnpm configuration for downstream installs.
Code Review Agent Run #490137Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Impact Analysis by BitoCross-Repository Impact Analysis
Code Paths AnalyzedImpact: Flow: Direct Changes (Diff Files): Repository Impact: Cross-Repository Dependencies: Database/Caching Impact: API Contract Violations: Infrastructure Dependencies: Additional Insights: Testing RecommendationsFrontend Impact: Service Integration: Data Serialization: Privacy Compliance: Backward Compatibility: OAuth Functionality: Reliability Testing: Additional Insights: Analysis based on known dependency patterns and edges. Actual impact may vary. |
✅ Review Settings OverriddenStatus: Guidelines:
Note: Extra guidelines beyond 3 general purpose guidelines and 1 language specific guideline per language are not processed. Guidelines are fetched from the source branch. |
Summary
pnpm packpnpmfileChecksumso Renovate lockfile updates remain compatible with frozen installsWhy
Renovate updates pnpm lockfiles with the pnpmfile disabled for safety. pnpm then removes the root hook checksum, causing every frozen install to fail before build, lint, or tests run.
Scoping the hook to package packing removes that install-time coupling while preserving the published package manifests. This is intended to land before #474 is rebased or retried.
Validation
CI=true pnpm install --frozen-lockfilepnpm format:checkpnpm lintpnpm build:pkgsscripts,devDependencies,pnpm, andpackageManagerpnpm run implementation:run -- --all -- implementation:installFour full tarball hashes differ from the pnpm 11.15.1 baseline only in archive metadata under pnpm 11.25.0; all unpacked content and manifests are identical.