@samitouri / QOS-React-2 / commits / 21be03bfed

[ci] Fork scripts/release/download-experimental-build.js

This PR just copies the original file without any modifications for easier review. The original script makes assumptions about CircleCI that are difficult to untangle. So let's fork this file temporarily for GitHub actions. Later on we will remove the original and rename this fork back to the original naming. ghstack-source-id: 0ce078538e76349d9ecb69ffc1c352e24390c426 Pull Request resolved: https://github.com/facebook/react/pull/30374

Lauren Tan committed Jul 18, 2024 at 16:19 UTC 21be03bfed606f984412477843c7f747933900c9
1 file changed +32
scripts/release/download-experimental-build-ghaction.js new
+32
@@ -0,0 +1,32 @@
1 +#!/usr/bin/env node
2 +
3 +'use strict';
4 +
5 +const {join} = require('path');
6 +const {
7 + addDefaultParamValue,
8 + getPublicPackages,
9 + handleError,
10 +} = require('./utils');
11 +
12 +const downloadBuildArtifacts = require('./shared-commands/download-build-artifacts');
13 +const parseParams = require('./shared-commands/parse-params');
14 +const printSummary = require('./download-experimental-build-commands/print-summary');
15 +
16 +const run = async () => {
17 + try {
18 + addDefaultParamValue('-r', '--releaseChannel', 'experimental');
19 +
20 + const params = await parseParams();
21 + params.cwd = join(__dirname, '..', '..');
22 + params.packages = await getPublicPackages(true);
23 +
24 + await downloadBuildArtifacts(params);
25 +
26 + printSummary(params);
27 + } catch (error) {
28 + handleError(error);
29 + }
30 +};
31 +
32 +run();