Print a hint where to get the token

This commit is contained in:
Dan Abramov 2023-05-05 20:01:46 +01:00
parent b00e27342d
commit 523f2f0d48
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,10 @@ const CIRCLE_TOKEN = process.env.CIRCLE_CI_API_TOKEN;
if (!CIRCLE_TOKEN) {
console.error(
theme.error('Missing required environment variable: CIRCLE_CI_API_TOKEN')
theme.error(
'Missing required environment variable: CIRCLE_CI_API_TOKEN\n' +
'Grab it here: https://app.circleci.com/settings/user/tokens'
)
);
process.exit(1);
}