Skip to content

Commit 0cdedd5

Browse files
Fix build mpk script to use correct test project branch (#441)
2 parents 882b23f + 9a07449 commit 0cdedd5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/release/build-mpk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ async function updateNativeComponentsTestProject(
181181
log(`Updating NativeComponentsTestProject (repo=${moduleInfo.testProjectUrl ?? "<unknown>"})...`);
182182
log(`JS actions dist path: ${jsActionsPath}`);
183183
log(`JS actions files found: ${jsActions.length}`);
184-
await cloneRepo(moduleInfo.testProjectUrl, tmpFolder);
184+
await cloneRepo(moduleInfo.testProjectUrl, tmpFolder, moduleInfo.testProjectBranchName);
185185

186186
log(`Deleting existing JS Actions from test project: ${tmpFolderActions}`);
187187
await rm(tmpFolderActions, { force: true, recursive: true }); // this is useful to avoid retaining stale dependencies in the test project.

scripts/release/module-automation/commons.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function getFiles(folder: string, extensions?: string[]): Promise<string[
88

99
export function getPackageInfo(folder: string): Promise<any>;
1010

11-
export function cloneRepo(githubUrl: string, localFolder: string): Promise<void>;
11+
export function cloneRepo(githubUrl: string, localFolder: string, branchName?: string): Promise<void>;
1212

1313
export function createMPK(tmpFolder: string, moduleInfo: any, excludeFilesRegExp: RegExp): Promise<string>;
1414

0 commit comments

Comments
 (0)