cloudflare-workers-cd-rollback

Installation
SKILL.md

Cloudflare Workers CD with auto-rollback

Use the three workflow templates with cf, Node.js 24 and pnpm. cf-example at ~/ghq/github.com/mizchi/cf-example shows the current Vite/config/typegen integration; this skill adds deployment state capture and rollback.

push main/release → staging/production caller → deploy.yml
  → capture previous traffic versions as JSON
  → cf d1 migrations apply DATABASE_ID --dir db/migrations
  → MoonBit build + FFI preparation
  → cf workers types + cf build --mode <target>
  → bundle check + cf deploy --prebuilt --mode <target> --dry-run
  → cf deploy --prebuilt --mode <target>
  → smoke
  → on failure: cf workers deployments create with the saved traffic array
  → report + fail the workflow when smoke failed

Copy and configure

Installs
46
Repository
mizchi/skills
GitHub Stars
416
First Seen
May 26, 2026