@@ -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,37 @@ 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+ - ** Lint** - Checks code style and formatting (` pnpm lint ` )
95+ - ** Test** - Runs all tests (` pnpm test ` )
96+ - ** Type Check** - Validates TypeScript types for both packages
97+
98+ ### Deploy (` .github/workflows/deploy.yml ` )
99+
100+ Runs automatically on push to ` main ` :
101+ - ** Deploy Worker** - Deploys backend worker to Cloudflare
102+ - ** Deploy Web** - Deploys frontend worker to Cloudflare (after worker deploys)
103+
104+ ### Setup GitHub Secrets
105+
106+ To enable automatic deployments, add these secrets to your GitHub repository:
107+
108+ 1 . Go to ** Settings** → ** Secrets and variables** → ** Actions**
109+ 2 . Add the following secrets:
110+ - ` CLOUDFLARE_API_TOKEN ` - Your Cloudflare API token ([ Create one here] ( https://dash.cloudflare.com/profile/api-tokens ) )
111+ - ` CLOUDFLARE_ACCOUNT_ID ` - Your Cloudflare account ID
112+
113+ You can find your account ID in your Cloudflare dashboard URL: ` https://dash.cloudflare.com/<ACCOUNT_ID> `
114+
115+ ** Note:** The API token needs ` Workers Scripts:Edit ` permissions for deployments.
116+
117+ ## Manual Deployment
88118
89119### Worker
90120
0 commit comments