[ci] Cleanup more references to circleci
ghstack-source-id: 85a5f17b2b9dee35bb747ce2da13bffaed0fa34a Pull Request resolved: https://github.com/facebook/react/pull/30509
Lauren Tan committed
Jul 29, 2024 at 18:51 UTC
8fe510752f150a34be4409f474ca7de0746b7b18
5 files changed
+4
-22
ReactVersions.js
+1
-1
@@ -25,7 +25,7 @@ const ReactVersion = '19.0.0';
25
// choose to change it to "alpha", "beta", "rc", etc.
26
//
27
// It only affects the label used in the version string. To customize the
28
-// npm dist tags used during publish, refer to .circleci/config.yml.
28
+// npm dist tags used during publish, refer to .github/workflows/runtime_prereleases_*.yml.
29
const canaryChannelLabel = 'rc';
30
31
// If the canaryChannelLabel is "rc", the build pipeline will use this to build
dangerfile.js
+1
-1
@@ -274,7 +274,7 @@ ${significantResults.join('\n')}
274
writeFileSync('sizebot-message.md', message);
275
markdown(
276
'The size diff is too large to display in a single comment. ' +
277
- `The [CircleCI job](${process.env.CIRCLE_BUILD_URL}) contains an artifact called 'sizebot-message.md' with the full message.`
277
+ `The GitHub action for this pull request contains an artifact called 'sizebot-message.md' with the full message.`
278
);
279
} else {
280
markdown(message);
scripts/release/README.md
+1
-1
@@ -18,7 +18,7 @@ If this is your first time running the release scripts, go to the `scripts/relea
18
The release process consists of several phases, each one represented by one of the scripts below.
19
20
A typical release cycle goes like this:
21
-1. When a commit is pushed to the React repo, [Circle CI](https://circleci.com/gh/facebook/react/) will build all release bundles and run unit tests against both the source code and the built bundles.
21
+1. When a commit is pushed to the React repo, [GitHub Actions](https://github.com/facebook/react/actions) will build all release bundles and run unit tests against both the source code and the built bundles.
22
2. Each weekday, an automated CI cron job publishes prereleases to the `next` and `experimental` channels, from tip of the main branch.
23
1. You can also [trigger an automated prerelease via the command line](#trigger-an-automated-prerelease), instead of waiting until the next time the cron job runs.
24
2. For advanced cases, you can [**manually prepare and publish to the `next` channel**](#publishing-release) using the [`prepare-release-from-ci`](#prepare-release-from-ci) and [`publish`](#publish) scripts; or to the [**`experimental` channel**](#publishing-an-experimental-release) using the same scripts (but different build artifacts).
scripts/release/utils.js
+1
-18
@@ -5,7 +5,6 @@ const {createPatch} = require('diff');
5
const {hashElement} = require('folder-hash');
6
const {existsSync, readFileSync, writeFileSync} = require('fs');
7
const {readJson, writeJson} = require('fs-extra');
8
-const fetch = require('node-fetch');
8
const logUpdate = require('log-update');
9
const {join} = require('path');
10
const createLogger = require('progress-estimator');
@@ -58,17 +57,6 @@ const extractCommitFromVersionNumber = version => {
57
return match[2];
58
};
59
61
-const getArtifactsList = async buildID => {
62
- const headers = {};
63
- const {CIRCLE_CI_API_TOKEN} = process.env;
64
- if (CIRCLE_CI_API_TOKEN != null) {
65
- headers['Circle-Token'] = CIRCLE_CI_API_TOKEN;
66
- }
67
- const jobArtifactsURL = `https://circleci.com/api/v1.1/project/github/facebook/react/${buildID}/artifacts`;
68
- const jobArtifacts = await fetch(jobArtifactsURL, {headers});
69
- return jobArtifacts.json();
70
-};
71
-
60
const getBuildInfo = async () => {
61
const cwd = join(__dirname, '..', '..');
62
@@ -86,10 +74,6 @@ const getBuildInfo = async () => {
74
? `0.0.0-experimental-${commit}-${dateString}`
75
: `0.0.0-${commit}-${dateString}`;
76
89
- // Only available for Circle CI builds.
90
- // https://circleci.com/docs/2.0/env-vars/
91
- const buildNumber = process.env.CIRCLE_BUILD_NUM;
92
-
77
// React version is stored explicitly, separately for DevTools support.
78
// See updateVersionsForNext() below for more info.
79
const packageJSON = await readJson(
@@ -99,7 +83,7 @@ const getBuildInfo = async () => {
83
? `${packageJSON.version}-experimental-${commit}-${dateString}`
84
: `${packageJSON.version}-${commit}-${dateString}`;
85
102
- return {branch, buildNumber, checksum, commit, reactVersion, version};
86
+ return {branch, checksum, commit, reactVersion, version};
87
};
88
89
const getChecksumForCurrentRevision = async cwd => {
@@ -275,7 +259,6 @@ module.exports = {
259
addDefaultParamValue,
260
confirm,
261
execRead,
278
- getArtifactsList,
262
getBuildInfo,
263
getChecksumForCurrentRevision,
264
getCommitFromCurrentBuild,
scripts/tasks/eslint.js
-1
@@ -12,7 +12,6 @@ const runESLint = require('../eslint');
12
13
async function main() {
14
console.log('Linting all files...');
15
- // https://circleci.com/docs/2.0/env-vars/#circleci-environment-variable-descriptions
15
if (!process.env.CI) {
16
console.log('Hint: run `yarn linc` to only lint changed files.');
17
}