From 0a283dc4e4ef30845f39ad7844845d0ba7385456 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Tue, 24 Nov 2026 13:24:38 +0200 Subject: [PATCH] ci: move to pnpm 11.25.0 pnpm 11 applies a 24-hour release-age guard to every install. List sharp in allowBuilds, since pnpm 11 fails on unlisted build scripts, and keep the Lighthouse job from installing the site before it runs its script. Co-authored-by: multica-agent --- .github/workflows/ci.yml | 5 ++++- package.json | 2 +- pnpm-workspace.yaml | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e3f13a..a829cfe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,8 +104,11 @@ jobs: name: dist path: dist # Serves dist and fails below 95 in any category (lighthouserc.json), using - # the runner's Chrome. + # the runner's Chrome. pnpm 11 installs before it runs a script when + # node_modules is missing. This job needs none, so it skips that. - run: pnpm lighthouse + env: + pnpm_config_verify_deps_before_run: "false" - if: ${{ !cancelled() }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: diff --git a/package.json b/package.json index 356900b..fb86a58 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-components", "type": "module", "private": true, - "packageManager": "pnpm@10.33.4", + "packageManager": "pnpm@11.25.0", "scripts": { "build": "node scripts/fetch-history.mjs && nuxt generate", "build:mcp": "nuxt build mcp", diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index b4e2884..d82fe00 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,6 +3,9 @@ allowBuilds: # built-in node:sqlite, so the native binding is never built. better-sqlite3: false esbuild: true + # Comes in through ipx, nuxt-og-image and miniflare, which use its prebuilt + # binaries. pnpm installs those as optional dependencies, so it needs no build. + sharp: false # Its postinstall only switches the build to Vue 2; the default build is Vue 3's. vue-demi: false # Wrangler's runtime, for `wrangler dev`. Its postinstall only checks for the