@@ -24,7 +24,7 @@ A fullstack monorepo template using pnpm workspaces with Cloudflare Workers for
2424
2525## Prerequisites
2626
27- - Node.js >= 18
27+ - Node.js >= 24
2828- pnpm (` npm install -g pnpm ` )
2929- Cloudflare account (for deployment)
3030
@@ -84,7 +84,39 @@ The worker will run on http://localhost:8787 and the web app on http://localhost
8484- ` pnpm --filter @fullstack-monorepo-template/web build ` - Build for production
8585- ` pnpm --filter @fullstack-monorepo-template/web deploy ` - Deploy to Cloudflare Workers
8686
87- ## Deployment
87+ ## CI/CD
88+
89+ This project includes two GitHub Actions workflows:
90+
91+ ### PR Checks (` .github/workflows/pr-checks.yml ` )
92+
93+ Runs automatically on pull requests to ` main ` :
94+
95+ - ** Lint** - Checks code style and formatting (` pnpm lint ` )
96+ - ** Test** - Runs all tests (` pnpm test ` )
97+ - ** Type Check** - Validates TypeScript types for both packages
98+
99+ ### Deploy (` .github/workflows/deploy.yml ` )
100+
101+ Runs automatically on push to ` main ` :
102+
103+ - ** Deploy Worker** - Deploys backend worker to Cloudflare
104+ - ** Deploy Web** - Deploys frontend worker to Cloudflare (after worker deploys)
105+
106+ ### Setup GitHub Secrets
107+
108+ To enable automatic deployments, add these secrets to your GitHub repository:
109+
110+ 1 . Go to ** Settings** → ** Secrets and variables** → ** Actions**
111+ 2 . Add the following secrets:
112+ - ` CLOUDFLARE_API_TOKEN ` - Your Cloudflare API token ([ Create one here] ( https://dash.cloudflare.com/profile/api-tokens ) )
113+ - ` CLOUDFLARE_ACCOUNT_ID ` - Your Cloudflare account ID
114+
115+ You can find your account ID in your Cloudflare dashboard URL: ` https://dash.cloudflare.com/<ACCOUNT_ID> `
116+
117+ ** Note:** The API token needs ` Workers Scripts:Edit ` permissions for deployments.
118+
119+ ## Manual Deployment
88120
89121### Worker
90122
0 commit comments