From 9c0d48ecc500f4cd8d04fa9fc8d781fa587a140e Mon Sep 17 00:00:00 2001 From: mixedrays Date: Fri, 16 Oct 2026 20:09:27 +0200 Subject: [PATCH] ci: let the docs deploy install Wrangler at the workspace root wrangler-action installs Wrangler with a bare `pnpm add` at the repo root. pnpm refuses that once pnpm-workspace.yaml lists more than one package pattern, which it has since apps/ joined packages/, so the deploy failed. The root check is now off for that step alone. --- .github/workflows/deploy-docs.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 030f129..1101d16 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -45,6 +45,12 @@ jobs: - name: Deploy to Cloudflare Pages id: deploy uses: cloudflare/wrangler-action@v3 + # The action installs Wrangler with a bare `pnpm add` at the repo root, + # which pnpm refuses in a workspace with more than one package pattern + # (`apps/*` and `packages/*`). Lifted for this step alone, so the check + # still guards local installs. + env: + npm_config_ignore_workspace_root_check: true with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}