[ci] Update prepare-release-from-ci to dl from GH
Updates this script to download from GH actions instead, to prepare for moving the cron jobs over to GH actions. ghstack-source-id: 9bba9f2721e42b508d7fac6604be72906dedd836 Pull Request resolved: https://github.com/facebook/react/pull/30485
Lauren Tan committed
Jul 26, 2024 at 13:19 UTC
c00e895c190f42c6f476465f4be38a9c93c9a0d1
1 file changed
+7
-2
scripts/release/prepare-release-from-ci.js
+7
-2
@@ -5,7 +5,9 @@
5
const {join} = require('path');
6
const {addDefaultParamValue, handleError} = require('./utils');
7
8
-const downloadBuildArtifacts = require('./shared-commands/download-build-artifacts');
8
+const {
9
+ downloadBuildArtifacts,
10
+} = require('./shared-commands/download-build-artifacts-ghaction');
11
const parseParams = require('./shared-commands/parse-params');
12
const printPrereleaseSummary = require('./shared-commands/print-prerelease-summary');
13
const testPackagingFixture = require('./shared-commands/test-packaging-fixture');
@@ -17,7 +19,10 @@ const run = async () => {
19
const params = await parseParams();
20
params.cwd = join(__dirname, '..', '..');
21
20
- await downloadBuildArtifacts(params);
22
+ await downloadBuildArtifacts(
23
+ params.commit,
24
+ params.releaseChannel ?? process.env.RELEASE_CHANNEL
25
+ );
26
27
if (!params.skipTests) {
28
await testPackagingFixture(params);