diff --git a/scripts/release/build-mpk.ts b/scripts/release/build-mpk.ts index 37c013f62..cd315fa66 100644 --- a/scripts/release/build-mpk.ts +++ b/scripts/release/build-mpk.ts @@ -181,7 +181,7 @@ async function updateNativeComponentsTestProject( log(`Updating NativeComponentsTestProject (repo=${moduleInfo.testProjectUrl ?? ""})...`); log(`JS actions dist path: ${jsActionsPath}`); log(`JS actions files found: ${jsActions.length}`); - await cloneRepo(moduleInfo.testProjectUrl, tmpFolder); + await cloneRepo(moduleInfo.testProjectUrl, tmpFolder, moduleInfo.testProjectBranchName); log(`Deleting existing JS Actions from test project: ${tmpFolderActions}`); await rm(tmpFolderActions, { force: true, recursive: true }); // this is useful to avoid retaining stale dependencies in the test project. diff --git a/scripts/release/module-automation/commons.d.ts b/scripts/release/module-automation/commons.d.ts index 24bed53ac..c7df0b02e 100644 --- a/scripts/release/module-automation/commons.d.ts +++ b/scripts/release/module-automation/commons.d.ts @@ -8,7 +8,7 @@ export function getFiles(folder: string, extensions?: string[]): Promise; -export function cloneRepo(githubUrl: string, localFolder: string): Promise; +export function cloneRepo(githubUrl: string, localFolder: string, branchName?: string): Promise; export function createMPK(tmpFolder: string, moduleInfo: any, excludeFilesRegExp: RegExp): Promise;