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

Function main

scripts/devtools/publish-release.js:21–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20// This is the primary control function for this script.
21async function main() {
22 clear();
23
24 await confirm('Have you run the build-and-test script?', () => {
25 const buildAndTestScriptPath = join(__dirname, 'build-and-test.js');
26 const pathToPrint = relative(process.cwd(), buildAndTestScriptPath);
27
28 console.log('Begin by running the build-and-test script:');
29 console.log(chalk.bold.green(' ' + pathToPrint));
30 });
31
32 const {archivePath, currentCommitHash} = readSavedBuildMetadata();
33
34 await checkNPMPermissions();
35
36 await publishToNPM();
37
38 await printFinalInstructions(currentCommitHash, archivePath);
39}
40
41async function printFinalInstructions(currentCommitHash, archivePath) {
42 console.log('');

Callers 1

publish-release.jsFile · 0.70

Calls 6

readSavedBuildMetadataFunction · 0.85
checkNPMPermissionsFunction · 0.85
publishToNPMFunction · 0.85
clearFunction · 0.70
confirmFunction · 0.70
printFinalInstructionsFunction · 0.70

Tested by

no test coverage detected