MCPcopy Index your code
hub / github.com/react/react / run

Function run

scripts/release/build-release.js:24–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22const updateVersionNumbers = require('./build-release-locally-commands/update-version-numbers');
23
24const run = async () => {
25 try {
26 const cwd = join(__dirname, '..', '..');
27 const {branch, checksum, commit, reactVersion, version} =
28 await getBuildInfo();
29 const tempDirectory = join(tmpdir(), `react-${commit}`);
30 const params = {
31 branch,
32 checksum,
33 commit,
34 cwd,
35 reactVersion,
36 tempDirectory,
37 version,
38 };
39
40 await confirmAutomatedTesting(params);
41 await copyRepoToTempDirectory(params);
42 await updateVersionNumbers(params);
43 await addBuildInfoJSON(params);
44 await buildArtifacts(params);
45 await npmPackAndUnpack(params);
46 await printPrereleaseSummary(params, false);
47 } catch (error) {
48 handleError(error);
49 }
50};
51
52run();

Callers 1

build-release.jsFile · 0.70

Calls 2

getBuildInfoFunction · 0.85
handleErrorFunction · 0.70

Tested by

no test coverage detected