react/scripts/release/shared-commands/check-environment-variables.js
Brian Vaughn 95056b6836
DevTools build script enhancements (#17653)
* Updated DevTools local development instructions to mention experimental build step

* Added a command to download latest experimental release (for DevTools)

* Updated build instructions for clarity

* Added build-for-devtools package alias
2019-12-18 14:34:40 -08:00

31 lines
853 B
JavaScript

#!/usr/bin/env node
'use strict';
const theme = require('../theme');
module.exports = () => {
if (!process.env.CIRCLE_CI_API_TOKEN) {
console.error(
theme`
{error Missing CircleCI API token}
The CircleCI API is used to download build artifacts.
This API requires a token which must be exposed via a {underline CIRCLE_CI_API_TOKEN} environment var.
In order to run this script you will need to create your own API token.
Instructions can be found at:
{link https://circleci.com/docs/api/v1-reference/#getting-started}
To make this token available to the release script, add it to your {path .bash_profile} like so:
{dimmed # React release script}
export CIRCLE_CI_API_TOKEN=<your-token-here>
`
.replace(/\n +/g, '\n')
.trim()
);
process.exit(1);
}
};