chore: upgrade pnpm to version 11.5.1 across all configurations#1762
chore: upgrade pnpm to version 11.5.1 across all configurations#1762paustint wants to merge 1 commit into
Conversation
Add script to automate pnpm upgrades
58f43f0 to
5ec87a3
Compare
There was a problem hiding this comment.
Pull request overview
This PR upgrades the repository’s pinned pnpm version to 11.5.1 across the monorepo and automation surfaces, and adds a helper script to keep all pnpm pins in sync going forward.
Changes:
- Bump pnpm version pins to 11.5.1 in
package.json(engines/devEngines/packageManager) andapps/docs/package.json. - Update CI/workflow pnpm setup (
pnpm/action-setup) and Docker build ARGs to 11.5.1. - Add
scripts/update-pnpm.mjsplus a rootupdate-pnpmnpm script, and refreshpnpm-lock.yaml.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/update-pnpm.mjs | New automation to update pnpm pins across repo files and optionally refresh the lockfile. |
| package.json | Pins pnpm to 11.5.1 and adds an update-pnpm script entry. |
| apps/docs/package.json | Updates docs app pnpm engine/devEngine version to 11.5.1 (preserving ~). |
| pnpm-lock.yaml | Lockfile refresh reflecting pnpm 11.5.1 package manager dependencies. |
| Dockerfile | Updates ARG PNPM_VERSION to 11.5.1 for Corepack prepare. |
| Dockerfile.e2e | Updates ARG PNPM_VERSION to 11.5.1 for E2E image. |
| .github/workflows/ci.yml | Updates pnpm/action-setup version to 11.5.1 in CI and E2E jobs. |
| .github/workflows/docs.yml | Updates pnpm/action-setup version to 11.5.1 for docs workflow. |
| .github/workflows/release.yml | Updates pnpm/action-setup version to 11.5.1 for release workflow. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| * Pin sites kept in sync: | ||
| * - package.json -> engines.pnpm, devEngines.packageManager.version, packageManager (with corepack hash) | ||
| * - apps/docs/package.json -> engines.pnpm (any range prefix like `~` is preserved), devEngines.packageManager.version | ||
| * - .github/workflows/*.yml -> the `version:` passed to pnpm/action-setup | ||
| * - Dockerfile / Dockerfile.e2e -> ARG PNPM_VERSION |
| console.log('\nRefreshing pnpm-lock.yaml via `pnpm install --lockfile-only`...'); | ||
| try { | ||
| execFileSync('pnpm', ['install', '--lockfile-only'], { cwd: repoRoot, stdio: 'inherit' }); | ||
| } catch { | ||
| console.warn('\n⚠ Could not run `pnpm install` automatically. Run it manually to refresh pnpm-lock.yaml.'); | ||
| } |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Add script to automate pnpm upgrades