Skip to content

Commit d566f28

Browse files
committed
chore: update workflow
1 parent a8e980f commit d566f28

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/cloudflare-preview-deploy.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@ jobs:
5252
with:
5353
node-version: 22
5454

55+
- name: Install Wrangler
56+
run: npm install -g wrangler@latest
57+
5558
- name: Deploy to Cloudflare Workers
5659
id: deploy
57-
uses: cloudflare/wrangler-action@v3
58-
with:
59-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
60-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
61-
command: deploy --name md-pr-${{ steps.read-pr.outputs.pr_number }} --assets dist
62-
workingDirectory: apps/web
60+
run: npx wrangler deploy --name md-pr-${{ steps.read-pr.outputs.pr_number }} --assets dist
61+
working-directory: apps/web
62+
env:
63+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
64+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
6365

6466
- name: Get deployment URL
6567
id: deployment-url

0 commit comments

Comments
 (0)