Skip to content

Commit ff868a8

Browse files
committed
Remove unnecessary CIRCLE_CI_API_TOKEN checks
1 parent 1f5cdf8 commit ff868a8

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

packages/react-devtools-inline/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,6 @@ yarn
354354
./download-experimental-build.js --commit=main
355355
```
356356

357-
Please note that you might need to [create a Circle CI API Token](https://circleci.com/docs/2.0/managing-api-tokens/) and set up an environment variable `CIRCLE_CI_API_TOKEN`.
358-
359357
## Build steps
360358
Once the above packages have been built or downloaded, you can watch for changes made to the source code and automatically rebuild by running:
361359
```sh

scripts/release/shared-commands/download-build-artifacts.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,9 @@ const run = async ({build, cwd, releaseChannel}) => {
2222
}
2323

2424
// Download and extract artifact
25-
const {CIRCLE_CI_API_TOKEN} = process.env;
26-
if (CIRCLE_CI_API_TOKEN == null) {
27-
throw new Error(
28-
`Expected a CircleCI token to download artifacts, got ${CIRCLE_CI_API_TOKEN}`
29-
);
30-
}
3125
await exec(`rm -rf ./build`, {cwd});
3226
await exec(
33-
`curl -L $(fwdproxy-config curl) ${buildArtifacts.url} -H "Circle-Token: ${CIRCLE_CI_API_TOKEN}" | tar -xvz`,
27+
`curl -L $(fwdproxy-config curl) ${buildArtifacts.url} | tar -xvz`,
3428
{
3529
cwd,
3630
}

scripts/release/utils.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,8 @@ const extractCommitFromVersionNumber = version => {
5959
};
6060

6161
const getArtifactsList = async buildID => {
62-
const {CIRCLE_CI_API_TOKEN} = process.env;
63-
if (CIRCLE_CI_API_TOKEN == null) {
64-
throw new Error(
65-
`Expected a CircleCI token to download artifacts, got ${CIRCLE_CI_API_TOKEN}`
66-
);
67-
}
6862
const jobArtifactsURL = `https://circleci.com/api/v1.1/project/github/facebook/react/${buildID}/artifacts`;
69-
const jobArtifacts = await fetch(jobArtifactsURL, {
70-
headers: {
71-
'Circle-Token': CIRCLE_CI_API_TOKEN,
72-
},
73-
});
63+
const jobArtifacts = await fetch(jobArtifactsURL);
7464
return jobArtifacts.json();
7565
};
7666

0 commit comments

Comments
 (0)