Agent skill · software engineering · secondsky

cloudflare-workers-ci-cd

Complete CI/CD guide for Cloudflare Workers using GitHub Actions and GitLab CI. Use for automated testing, deployment pipelines, preview environments, secrets management, or encountering deployment failures, workflow errors, environment configuration issues.

Why this skill is useful

Includes a complete CI/CD setup with executable scripts for deploying Cloudflare Workers that automate testing and deployment processes.

What it needs

Requires cloudflare-wrangler, git, github-cli installed locally. Requires cloudflare, github account access. About 8k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.

What this skill does

Cloudflare Workers CI/CD Status: ✅ Production Ready Last Verified: 2025-01-27 GitHub Actions: v4 GitLab CI: Latest Wrangler: 4.81.0 Table of Contents What Is Workers CI/CD? New in 2025 Quick Start (10 Minutes) Critical Rules Core Concepts Top 5 Use Cases Best Practices Top 7 Errors Prevented When to Load References --- What Is Workers CI/CD? Automated testing and deployment of Cloudflare Workers using GitHub Actions or GitLab CI. Enables running tests on every commit, deploying to preview/staging/production environments automatically, managing secrets securely, and implementing deployment gates for safe releases. Key capabilities: Automated testing, multi-environment deployments, preview URLs per PR, secrets management, deployment verification, automatic rollbacks. --- New in 2025 GitHub Actions Updates (January 2025): NEW: cloudflare/wrangler-action@v4 (improved caching, faster deployments) IMPROVED: Secrets support with vars and secrets parameters ADDED: Built-in preview environment cleanup BREAKING: apiToken renamed to api-token (kebab-case) Migration from v3: Wrangler 4.50.0 (January 2025): NEW: --dry-run flag for deployment validation IMPROVED: Faster deployments with parallel uploads ADDED: --keep-vars to preserve environment variables --- Quick Start (10 Minutes) GitHub Actions Setup 1. Create Cloudflare API Token Go to: https://dash.cloudflare.com/profile/api-tokens Create token with permissions: Account.Cloudflare Workers Scripts - Edit Account.Cloudflare Pages - Edit (if using Pages) 2. Add Secret to GitHub Repository → Settings → Secrets → Actions → New repository secret: Name: CLOUDFLAREAPITOKEN Value: [paste token] 3. Create .github/workflows/deploy.yml 4. Push and Verify Check Actions tab on GitHub to see deployment progress. --- Critical Rules 1. Never Commit Secrets to Git ✅ CORRECT: ❌ WRONG: Why: Exposed tokens allow anyone to deploy to your account. 2. Always Run Tests Before Deploy ✅ CORRECT: ❌ WRONG: Why: Broken code shouldn't reach production. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills secondsky/cloudflare-workers-ci-cd

View the source on GitHub

Browse the @skills marketplace