Repository navigation
ci: replace the update-lockfile workflow with the pnpm/update action - #13229
Conversation
PR Summary by QodoCI: replace update-lockfile workflow steps with pnpm/update action
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Confidence Score: 5/5The PR appears safe to merge because no blocking failures remain within the follow-up review scope. No blocking failure remains. Reviews (3): Last reviewed commit: "ci: generate changesets for production-d..." | Re-trigger Greptile |
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe lockfile workflow replaces custom shell-based dependency updates and pull request handling with the ChangesLockfile workflow automation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/update-lockfile.yml:
- Around line 39-45: Add the actual release-tag comment for the pinned
`pnpm/setup` action at the `uses` entry in the “Install pnpm” step, matching the
metadata format used by the other action pins. Verify the tag resolves to commit
`77cf06832101b3ac8c65caaf76a21643936d07a4`; do not use an unverified `# v1`
comment.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 77ac01a6-d14e-4046-802f-7d1906bd2ad9
📒 Files selected for processing (1)
.github/workflows/update-lockfile.yml
|
Code review by qodo was updated up to the latest commit eb88c48 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit 1ed1110 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…stry under update --latest (#13234) ## Summary `pnpm update --latest` (pacquet/v12) fails with `ERR_PNPM_PACKAGE_MANAGER_UPDATE_RESOLVE_LATEST` when a dependency uses a local protocol (`workspace:` / `link:` / `file:`) pointing at a package that isn't published: it tries to fetch the dep's `latest` tag from the registry and gets a 404. This surfaced in the new `pnpm/update`-based update-lockfile job (#13229), whose `@pnpm-private/*` deps are `workspace:*`. A `workspace:` / `link:` / `file:` dependency links a local directory and may not be published at all, so there is no registry "latest" to fetch. The TS CLI already skips these in `@pnpm/outdated` (`isLocalRef`); pacquet only skipped the narrow `workspace:<path>` form. This broadens the `--latest` resolve gate to skip all three local protocols, preserving them verbatim. ## Tests `update_latest_preserves_local_protocol_dependencies` — a workspace package linking three unpublished siblings via `workspace:*`, `file:`, and `link:` alongside a real registry dep; asserts all three specifiers are preserved verbatim and the registry dep still resolves. Verified load-bearing: narrowing the guard to `workspace:`-only reproduces the exact 404 on the `file:` dep.
Summary
Replaces the hand-rolled
update-lockfile.ymlsteps with the new pnpm/update action, dogfooding it on our own repo. The daily job now updates all dependencies to their latest versions, bumps Node.js within its pinned major, bumps pnpm to the latestnext-12, updates the GitHub Actions pinned in our workflows, runs the meta-updater, and opens/refreshes a singlechore/update-lockfilePR — with branch prep, change detection, force-push, and PR de-dup handled by the action.This broadens the job from a within-ranges lockfile refresh to a full latest-version update (
update-deps: latest) plus GitHub Actions bumps (github-actions: true, which ourUPDATE_LOCKFILE_TOKENalready has theworkflowscope for). Setupdate-deps: rangesinstead to stay within existingpackage.jsonranges.Squash Commit Body
Checklist
pnpm/port. (N/A — CI workflow only.)pnpm changeset) if this PR changes any published package. (N/A — no package change.)Summary by CodeRabbit
pnpm/updateGitHub Action.next-12pnpm channel, runpnpm update-manifestsafter updates, and refresh GitHub Actions pins.