Skip to content

chore(deploy): explicit named deploy scripts + dry-run variants#19

Open
whoabuddy wants to merge 1 commit into
mainfrom
chore/named-deploy-scripts
Open

chore(deploy): explicit named deploy scripts + dry-run variants#19
whoabuddy wants to merge 1 commit into
mainfrom
chore/named-deploy-scripts

Conversation

@whoabuddy
Copy link
Copy Markdown

Summary

  • Adds deploy:staging, deploy:production, and matching deploy:dry-run variants so deploys go through explicitly named environments.
  • Documents the new commands and the safety rationale in CLAUDE.md.

Why

Per cloudflare-bill-audit-2026-04.md Phase -1: while sunsetting worker-logs, the bare npm run deploy script targets the top-level dev config rather than staging/production. Named scripts make the intent explicit and let dry-runs validate the right config before a real deploy.

Test plan

  • npm run deploy:dry-run:staging builds the staging config without deploying
  • npm run deploy:dry-run:production builds the production config without deploying
  • CI green
  • Operator confirms before any real deploy:production run

🤖 Generated with Claude Code

Adds deploy:staging, deploy:production, and dry-run variants per
cloudflare-bill-audit-2026-04.md Phase -1 to prevent accidental
top-level dev deploys during the worker-logs sunset. Updates the
deployment table in CLAUDE.md to point to the explicit scripts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 1, 2026 21:33
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
worker-logs-production b7a12bd May 01 2026, 09:33 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
worker-logs-staging b7a12bd May 01 2026, 09:34 PM

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds explicit, environment-named deployment scripts (plus dry-run variants) to reduce the chance of deploying the wrong Cloudflare Workers configuration, and updates fork documentation to reflect the safer workflow.

Changes:

  • Add deploy:staging / deploy:production scripts and deploy:dry-run* variants to package.json.
  • Update CLAUDE.md deployment environment table to document the new commands and include a safety note about bare npm run deploy.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Introduces explicit deploy + dry-run scripts for staging/production via Wrangler --env and --dry-run.
CLAUDE.md Updates deployment command documentation to steer operators toward explicit environment deploy commands.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CLAUDE.md
| Staging | logs.aibtc.dev | `npm run deploy:staging` | `npm run deploy:dry-run:staging` |
| Production | logs.aibtc.com | `npm run deploy:production` | `npm run deploy:dry-run:production` |

> **Safety:** the bare `npm run deploy` script targets the top-level dev config, not staging or production. During the worker-logs sunset (see `cloudflare-bill-audit-2026-04.md`), prefer the explicit `deploy:staging` / `deploy:production` scripts so no one accidentally ships a config-less deploy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants