File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments