Skip to content

Commit a79b63e

Browse files
committed
fix(preview): isolate Wrangler delivery workspace
- keep candidate build dependencies under pnpm - run Wrangler from a bounded package-neutral delivery directory
1 parent 30ea46c commit a79b63e

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎.github/workflows/pages-preview.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ jobs:
115115
pnpm --dir candidate/website install --frozen-lockfile
116116
pnpm --dir candidate/website check
117117
118+
- name: Prepare the isolated Pages delivery
119+
run: |
120+
mkdir --parents .pages-preview
121+
cp --recursive candidate/website/.vitepress/dist .pages-preview/dist
122+
118123
- name: Deploy to the isolated Pages preview branch
119124
id: pages
120125
uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4.0.0
@@ -123,9 +128,9 @@ jobs:
123128
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
124129
packageManager: npm
125130
wranglerVersion: 4.114.0
126-
workingDirectory: candidate/website
131+
workingDirectory: .pages-preview
127132
command: >-
128-
pages deploy .vitepress/dist
133+
pages deploy dist
129134
--project-name=${{ vars.CLOUDFLARE_PAGES_PROJECT }}
130135
--branch=${{ needs.identity.outputs.branch }}
131136
--commit-hash=${{ needs.identity.outputs.head_sha }}

‎tasks/pages-preview-canary.md‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)