From 39371c6012e7ae89ef87e7f57cf50f106c413d4d Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 8 May 2026 22:01:57 -0700 Subject: [PATCH] [codex] Fix Vercel release web deploy scope (#2611) Co-authored-by: Julius Marminge --- .github/workflows/release.yml | 6 ++---- docs/release.md | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9a1d8e5181906e2b78615d3f7dfb2bfd35ee35e..35bcaaf3129ccfca8cbfb1b4eb2ec901b029c618 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -634,10 +634,8 @@ jobs: channel_name="nightly" fi - vercel_scope_args=() - if [[ -n "${VERCEL_TEAM_SLUG:-}" ]]; then - vercel_scope_args=(--scope "$VERCEL_TEAM_SLUG") - fi + vercel_scope="${VERCEL_TEAM_SLUG:-$VERCEL_ORG_ID}" + vercel_scope_args=(--scope "$vercel_scope") echo "Deploying hosted web app for $channel_name channel." deployment_url="$( diff --git a/docs/release.md b/docs/release.md index 640fdc333c923c389a138ce8b5d75aa79b22fdbd..44ad11351020102f21f52ecfaff1a716b5738b81 100644 --- a/docs/release.md +++ b/docs/release.md @@ -44,7 +44,7 @@ Required GitHub Actions secrets: Optional GitHub Actions variables: -- `VERCEL_TEAM_SLUG`: required only if the token needs an explicit Vercel team scope. +- `VERCEL_TEAM_SLUG`: overrides the Vercel CLI scope when the team slug is preferred over the `VERCEL_ORG_ID` secret. - `T3CODE_WEB_ROUTER_URL`: defaults to `https://app.t3.codes`. - `T3CODE_WEB_LATEST_DOMAIN`: defaults to `latest.app.t3.codes`. - `T3CODE_WEB_NIGHTLY_DOMAIN`: defaults to `nightly.app.t3.codes`. -- 2.54.0