Add support for VERCEL_TOKEN environment variable by TooTallNate · Pull Request #14831 · vercel/vercel · GitHub added support for the VERCEL_TOKEN environment variable, but there seems to be a bug in the implementation.
Problem
The VERCEL_TOKEN environment variable is being read after the missing-token error is already thrown in non-TTY environments. This causes CI pipelines with VERCEL_TOKEN set to fail unnecessarily.
Reference
Proposed Fix
I have a fix for it: fix(cli): check VERCEL_TOKEN env var before requiring login by 3deep-3e · Pull Request #15236 · vercel/vercel · GitHub
PTAL. Thanks!