A sample monorepo to automate deployments of multiple Cloudflare Workers.
- Lerna
- Cloudflare Workers
- Github Actions
- Github Actions listens the
main
branch and trigger on eventspush
andpull_request
- It detects changes automatically and only deploy changed packages
npm install
# Run all the workers
npx lerna run start
# Run a specific workers
npx lerna run start --scope=<package name>
# Deploy all packages to the dev environment
npx lerna run deploy-dev
# Deploy all packages to prod environment
npx lerna run deploy
# Deploy a specific package
npx lerna run deploy --scope=<package name>
Add multiple environments deployment through Github Actions base on branch name
- dev
- staging
- production