From 351666286e139881f2a45492dfd930d49a034574 Mon Sep 17 00:00:00 2001 From: Tom Scanlan Date: Fri, 5 Jun 2026 11:12:43 -0400 Subject: [PATCH] fix(ci): declare built dependencies to stop ERR_PNPM_IGNORED_BUILDS pnpm 10 refuses to silently run dependency build scripts. Locally this is just an 'Ignored build scripts' warning, but in CI (withastro/action runs pnpm install in CI mode) it escalates to a hard ERR_PNPM_IGNORED_BUILDS error with exit code 1, which fails the Deploy Docs workflow on every push to main. Declare the packages that have install/build scripts so pnpm has an explicit policy for each: - esbuild, sharp: allowed (they need their native binaries) - es5-ext: ignored (its script is only a funding notice) With all three classified there are no remaining ignored builds, so neither the warning nor the CI error fires. Verified with a clean 'CI=true pnpm install --frozen-lockfile': no warning, exit 0, and esbuild + sharp native artifacts present. --- pnpm-workspace.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index ccbac80..70ce1be 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,13 @@ packages: - "." + +# Allow native deps to run their install/build scripts. Without this, +# pnpm 10 reports "Ignored build scripts", which is only a warning locally +# but becomes a hard ERR_PNPM_IGNORED_BUILDS failure in CI (e.g. inside +# withastro/action). That is what breaks the Deploy Docs workflow. +# es5-ext's script is only a funding notice, so it stays ignored. +onlyBuiltDependencies: + - esbuild + - sharp +ignoredBuiltDependencies: + - es5-ext -- knotmirror 0.0.1