Skip to content

Commit 36d17cc

Browse files
authored
ci: isolate Wrangler from the v3 workspace (#13402)
1 parent 0ce9113 commit 36d17cc

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/cloudflare-pages.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,22 @@ jobs:
4444
with:
4545
node-version: 22
4646

47+
- name: Install Wrangler outside the workspace
48+
if: github.event_name != 'pull_request'
49+
run: |
50+
npm install \
51+
--prefix "$RUNNER_TEMP/wrangler" \
52+
--no-save \
53+
--no-audit \
54+
--no-fund \
55+
wrangler@3.90.0
56+
4757
- name: Deploy to Cloudflare Pages
4858
if: github.event_name != 'pull_request'
49-
uses: cloudflare/wrangler-action@v3
50-
with:
51-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
52-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
53-
packageManager: npm
54-
command: pages deploy dist --project-name=umi-v3 --branch=3.x
55-
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
59+
env:
60+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
61+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
62+
run: |
63+
"$RUNNER_TEMP/wrangler/node_modules/.bin/wrangler" pages deploy dist \
64+
--project-name=umi-v3 \
65+
--branch=3.x

0 commit comments

Comments
 (0)