Skip to content

fix(ci): make realtime worker deploy actually run#3

Merged
chtnnh merged 1 commit into
mainfrom
cursor/fix-deploy-workflow-ec9a
Jun 23, 2026
Merged

fix(ci): make realtime worker deploy actually run#3
chtnnh merged 1 commit into
mainfrom
cursor/fix-deploy-workflow-ec9a

Conversation

@chtnnh

@chtnnh chtnnh commented Jun 23, 2026

Copy link
Copy Markdown
Owner

The Deploy workflow triggered correctly after CI on main but failed in ~16s. Two bugs:

  1. ERR_PNPM_INVALID_DEPLOY_TARGET … requires one parameterpnpm --filter @together/realtime deploy resolves to pnpm's built-in deploy command, not the package's deploy script. Fixed by using pnpm --filter @together/realtime run deploy.
  2. Empty CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_ID — the secrets were added as Environment secrets, but the job didn't declare an environment:, so they injected as empty strings. Fixed by adding environment: production to the job.

Action required

The job now reads secrets from a GitHub Environment named production. Make sure that's where CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID live (Settings → Environments → production). If you named the environment something else, change the one environment: line to match.

Testing

  • ✅ Reproduced locally: pnpm --filter @together/realtime deployERR_PNPM_INVALID_DEPLOY_TARGET; pnpm --filter @together/realtime run deploy → runs wrangler deploy --env production.
  • deploy.yml validated as well-formed YAML.
  • Once merged to main, the next green CI run will trigger Deploy with the corrected command + environment.
Open in Web Open in Cursor 

Co-authored-by: Chaitanya Mittal <chtnnh@users.noreply.github.com>
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
together-web Ready Ready Preview, Comment Jun 23, 2026 11:29am

@chtnnh chtnnh marked this pull request as ready for review June 23, 2026 11:38
@chtnnh chtnnh merged commit a21a18d into main Jun 23, 2026
4 checks passed
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