mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
* 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
31 lines
853 B
JavaScript
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);
|
|
}
|
|
};
|