Skip to content

Commit 39371c6

Browse files
juliusmarmingeJulius Marminge
andauthored
[codex] Fix Vercel release web deploy scope (#2611)
Co-authored-by: Julius Marminge <julius@macmini.local>
1 parent 99efaa0 commit 39371c6

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,10 +634,8 @@ jobs:
634634
channel_name="nightly"
635635
fi
636636
637-
vercel_scope_args=()
638-
if [[ -n "${VERCEL_TEAM_SLUG:-}" ]]; then
639-
vercel_scope_args=(--scope "$VERCEL_TEAM_SLUG")
640-
fi
637+
vercel_scope="${VERCEL_TEAM_SLUG:-$VERCEL_ORG_ID}"
638+
vercel_scope_args=(--scope "$vercel_scope")
641639
642640
echo "Deploying hosted web app for $channel_name channel."
643641
deployment_url="$(

docs/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Required GitHub Actions secrets:
4444

4545
Optional GitHub Actions variables:
4646

47-
- `VERCEL_TEAM_SLUG`: required only if the token needs an explicit Vercel team scope.
47+
- `VERCEL_TEAM_SLUG`: overrides the Vercel CLI scope when the team slug is preferred over the `VERCEL_ORG_ID` secret.
4848
- `T3CODE_WEB_ROUTER_URL`: defaults to `https://app.t3.codes`.
4949
- `T3CODE_WEB_LATEST_DOMAIN`: defaults to `latest.app.t3.codes`.
5050
- `T3CODE_WEB_NIGHTLY_DOMAIN`: defaults to `nightly.app.t3.codes`.

0 commit comments

Comments
 (0)