[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
This commit is contained in:
Lauren Tan
2024-07-26 14:57:52 -04:00
parent 31fbac882a
commit cdc40d2a4e
+7 -2
View File
@@ -5,7 +5,9 @@
const {join} = require('path');
const {addDefaultParamValue, handleError} = require('./utils');
const downloadBuildArtifacts = require('./shared-commands/download-build-artifacts');
const {
downloadBuildArtifacts,
} = require('./shared-commands/download-build-artifacts-ghaction');
const parseParams = require('./shared-commands/parse-params');
const printPrereleaseSummary = require('./shared-commands/print-prerelease-summary');
const testPackagingFixture = require('./shared-commands/test-packaging-fixture');
@@ -17,7 +19,10 @@ const run = async () => {
const params = await parseParams();
params.cwd = join(__dirname, '..', '..');
await downloadBuildArtifacts(params);
await downloadBuildArtifacts(
params.commit,
params.releaseChannel ?? process.env.RELEASE_CHANNEL
);
if (!params.skipTests) {
await testPackagingFixture(params);