Skip to content

Commit f8d33a9

Browse files
hotlongCopilot
andcommitted
fix(deploy): pnpm install before wrangler deploy
Wrangler bundles cloudflare/worker.ts which imports @cloudflare/containers from workspace node_modules. Without pnpm install the bundle fails: Could not resolve '@cloudflare/containers' Add pnpm + node setup + frozen lockfile install in both cloud and objectos jobs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 045322e commit f8d33a9

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ jobs:
122122
fetch-depth: 0
123123
token: ${{ secrets.GITHUB_TOKEN }}
124124

125+
- name: Set up pnpm
126+
uses: pnpm/action-setup@v4
127+
128+
- name: Set up Node
129+
uses: actions/setup-node@v4
130+
with:
131+
node-version: 22
132+
cache: pnpm
133+
134+
- name: Install workspace deps (for wrangler bundle)
135+
run: pnpm install --frozen-lockfile --prefer-offline
136+
125137
- name: Set up Docker Buildx
126138
uses: docker/setup-buildx-action@v3
127139

@@ -210,6 +222,18 @@ jobs:
210222
fetch-depth: 0
211223
token: ${{ secrets.GITHUB_TOKEN }}
212224

225+
- name: Set up pnpm
226+
uses: pnpm/action-setup@v4
227+
228+
- name: Set up Node
229+
uses: actions/setup-node@v4
230+
with:
231+
node-version: 22
232+
cache: pnpm
233+
234+
- name: Install workspace deps (for wrangler bundle)
235+
run: pnpm install --frozen-lockfile --prefer-offline
236+
213237
- name: Set up Docker Buildx
214238
uses: docker/setup-buildx-action@v3
215239

0 commit comments

Comments
 (0)