Skip to content

Fix edge function deploy under Supabase CLI v3 - #94

Merged
DanialBeg merged 1 commit into
mainfrom
fix/ci-supabase-cli-v3
Nov 2, 2026
Merged

DanialBeg merged 1 commit into
mainfrom
fix/ci-supabase-cli-v3

Conversation

@DanialBeg

Copy link
Copy Markdown
Member

What failed

After #93 merged, the Deploy edge functions job on main failed (run 41519205203). Typecheck, lint, test and build all passed.

The job installs the Supabase CLI at version: latest, and that became v3.0.0 earlier that day. v3 asks before any change to a hosted project and fails when nothing can answer:

Confirmation required: Deploy 3 Functions … This run can't ask because stdout is not a terminal. Nothing was changed. Re-run with --yes to confirm.

Nothing was deployed, so production still runs the functions from the last green deploy (226982e). #93 didn't touch any functions.

Fix

  • Pin the CLI to 3.0.0 instead of latest, so a new major can't break deploys unannounced. Bump it on purpose.
  • Pass --yes (v3's documented way to confirm in CI).
  • Use --remote=<ref> in place of --project-ref, which v3 deprecates and plans to remove.

Testing

  • The workflow YAML parses; the deploy step is supabase functions deploy --remote=oybmtfnarflrceukvays --yes with the CLI at 3.0.0.
  • The deploy job runs only on pushes to main, so this PR's CI can't exercise it. The proof is the deploy run after merge.

The deploy job installed the CLI at `latest`, which became v3.0.0 on
2026-11-02. v3 asks before any change to a hosted project and fails when
nothing can answer, so the deploy on main stopped at the prompt and
changed nothing.

Pin the CLI to 3.0.0 so a new major can't break deploys unannounced,
pass --yes, and use --remote in place of the deprecated --project-ref.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Deploying timeline-prototype with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2c286eb
Status: ✅  Deploy successful!
Preview URL: https://5f70fbe7.timeline-prototype.pages.dev
Branch Preview URL: https://fix-ci-supabase-cli-v3.timeline-prototype.pages.dev

View logs

@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
webapp Ready Ready Preview Nov 2, 2026 8:47pm UTC

@DanialBeg
DanialBeg merged commit e644b5b into main Nov 2, 2026
6 checks passed
@DanialBeg
DanialBeg deleted the fix/ci-supabase-cli-v3 branch November 2, 2026 21:15

This branch was successfully deployed

1 active deployment
Preview — 2c286eb2 Deployed Nov 2, 2026 by vercel[bot]
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