Deploy

Builds and deploys the site to Cloudflare Workers with pre-flight checks including TypeScript, tests, and production build. Use when deploying, publishing, or shipping to production.

majiayu000 bd654a2 2 files · 2.0 KB Updated 567 repo stars

File contents

Build and deploy the site to Cloudflare Workers with pre-flight checks.

Steps

1. Pre-flight Checks

Run verification sequentially, stopping on first failure:

  1. bun run check — TypeScript type checking
  2. bun run test — Run all tests
  3. bun run build — Production build

If any step fails, stop and report the error with a fix suggestion. Do not proceed to deploy.

2. Deploy

If all checks pass, run:

bun run deploy

This executes astro build && wrangler deploy.

3. Report Results

After deployment completes, report:

  • The Worker URL from wrangler output
  • Any warnings from the build or deploy process
  • Remind the user to verify the live site

If deployment fails:

  • Check if wrangler is authenticated (bunx wrangler whoami)
  • Check if the worker name in wrangler.jsonc is correct
  • Report the specific error message

majiayu000/claude-skill-registry-data/tree/main/devops/deploy-bluewaves-creations-website-foundation commit bd654a2600

Frequently asked questions

npx skillmds add majiayu000/deploy-32