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