Skip to content

Commit 8111492

Browse files
committed
ci: switch to directly using wrangler CLi
1 parent d36343f commit 8111492

3 files changed

Lines changed: 532 additions & 8 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
run: pnpm turbo run build --filter=docs
3636

3737
- name: Deploy to Cloudflare Workers
38-
uses: cloudflare/wrangler-action@v3
39-
with:
40-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
41-
workingDirectory: packages/docs
42-
packageManager: pnpm
38+
run: pnpm wrangler deploy
39+
working-directory: packages/docs
40+
env:
41+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

packages/docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@vitejs/plugin-react": "latest",
2929
"rsc-html-stream": "^0.0.7",
3030
"typescript": "catalog:",
31-
"vite": "catalog:"
31+
"vite": "catalog:",
32+
"wrangler": "^4.66.0"
3233
}
3334
}

0 commit comments

Comments
 (0)