mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user