Skip to content

Commit 2c5e9d0

Browse files
author
Neil Munoz
committed
Fix Vercel CLI authentication method for v46.1.1 compatibility
- Replace deprecated 'vercel login --token' with environment variable authentication - Use VERCEL_TOKEN as env var and verify with 'vercel whoami' - Maintain compatibility with existing VERCEL_ORG_ID and VERCEL_PROJECT_ID
1 parent 0909617 commit 2c5e9d0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/production-pipeline.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,12 @@ jobs:
354354
exit 1
355355
fi
356356
357-
# Login with token
358-
if ! vercel login --token "$VERCEL_TOKEN"; then
357+
# Set Vercel token as environment variable (new authentication method)
358+
export VERCEL_TOKEN="$VERCEL_TOKEN"
359+
echo "✅ Vercel token configured via environment variable"
360+
361+
# Verify authentication
362+
if ! vercel whoami; then
359363
echo "❌ Vercel authentication failed"
360364
exit 1
361365
fi

0 commit comments

Comments
 (0)