Skip to content

ci(decision-events): add cf release workflow (#9335) - #12566

Draft
dezren39 wants to merge 1 commit into
mainfrom
codex/decision-events-cf-release-9335
Draft

dezren39 wants to merge 1 commit into
mainfrom
codex/decision-events-cf-release-9335

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Replace the worker's manual Wrangler deploy instructions with a protected, manual GitHub Actions release workflow using cf workers versions create and optional cf workers deployments create promotion.
  • Pin cf@1.0.0-rc.2, compatible Wrangler 4.163.0, and Node 24.22; add a cloudflare.config.ts matching the existing D1 and Durable Object bindings.
  • Add offline guards for Build Output parity, exact Worker/D1 target identity, deployable version selection, and preserve the current D1 ID, DO class/storage, and Wrangler v1 migration declaration.
  • Disable npm run deploy as a manual Wrangler path. The workflow does not run automatically on pushes and promotion defaults off.

Verification

  • npm ci
  • bun test (15 passing)
  • npm run typecheck
  • npm run test:release
  • cf workers versions create --dry-run with Node 24.22, followed by npm run check:build-output
  • actionlint via .github/scripts/check-workflows.sh passes for the new workflow.

The repo-wide CI policy agreement script still reports an unrelated pre-existing PR-derived trigger in .github/workflows/note-submission-pr.yml; I left that file unchanged.

Release prerequisites

The decision-events-production GitHub Environment is not currently present. Before dispatching, configure it with a protected reviewer rule, account variable CLOUDFLARE_ACCOUNT_ID, and least-privilege secret CLOUDFLARE_API_TOKEN. The workflow performs read-only checks for the existing Worker and D1 ID before uploading. It does not create resources, apply SQL/migrations, submit events, change producer settings, or modify custom routes/domains. Producer cutover remains a separate action.


Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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.

1 participant