Skip to content

fix: type subscribe.ts body as unknown cast #39

fix: type subscribe.ts body as unknown cast

fix: type subscribe.ts body as unknown cast #39

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js 22
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.4"
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build site
run: bun run build
- name: Install Chromium for search crawl
run: bunx playwright install --with-deps chromium
- name: Generate search index (crawl)
run: bun run build:search:crawl
- name: Deploy to Cloudflare Workers
run: bunx wrangler deploy --config dist/server/wrangler.json
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}