Skip to content

Commit 6f24d81

Browse files
committed
fix: use pnpm exec wrangler for deploy, find binary in project deps
1 parent 3691255 commit 6f24d81

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/web-deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ jobs:
3232
- run: pnpm --filter @kostech/web build
3333
env:
3434
NUXT_PUBLIC_SITE_URL: https://kostech.md
35-
- run: pnpm install -g wrangler
35+
# wrangler is already in devDependencies - make sure it's on PATH
3636
- name: Deploy to Cloudflare Pages
37-
run: npx wrangler pages deploy apps/web/dist --project-name=kostech-web --branch=main --account-id=${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
37+
run: |
38+
WRANGLER=$(pnpm exec which wrangler 2>/dev/null || which wrangler 2>/dev/null || echo "./node_modules/.bin/wrangler")
39+
echo "Using wrangler at: $WRANGLER"
40+
$WRANGLER pages deploy apps/web/dist --project-name=kostech-web --branch=main --account-id=${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3841
env:
3942
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
43+
NODE_PATH: ./node_modules

0 commit comments

Comments
 (0)