Home / Function/ run() — react Function Reference

run() — react Function Reference

Architecture documentation for the run() function in prepare-release-from-ci.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  322655bb_9db3_685e_46a9_0526ab446be0["run()"]
  9d0945b5_9072_f189_f8fd_4339817280f1["prepare-release-from-ci.js"]
  322655bb_9db3_685e_46a9_0526ab446be0 -->|defined in| 9d0945b5_9072_f189_f8fd_4339817280f1
  style 322655bb_9db3_685e_46a9_0526ab446be0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/release/prepare-release-from-ci.js lines 15–36

const run = async () => {
  try {
    addDefaultParamValue(null, '--commit', 'main');

    const params = await parseParams();
    params.cwd = join(__dirname, '..', '..');

    await downloadBuildArtifacts({
      commit: params.commit,
      releaseChannel: params.releaseChannel ?? process.env.RELEASE_CHANNEL,
    });

    if (!params.skipTests) {
      await testPackagingFixture(params);
    }

    const isLatestRelease = params.releaseChannel === 'latest';
    await printPrereleaseSummary(params, isLatestRelease);
  } catch (error) {
    handleError(error);
  }
};

Domain

Subdomains

Frequently Asked Questions

What does run() do?
run() is a function in the react codebase, defined in scripts/release/prepare-release-from-ci.js.
Where is run() defined?
run() is defined in scripts/release/prepare-release-from-ci.js at line 15.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free