diff --git a/packages/jsActions/mobile-resources-native/package.json b/packages/jsActions/mobile-resources-native/package.json index cb4610b3c..97e036c4a 100644 --- a/packages/jsActions/mobile-resources-native/package.json +++ b/packages/jsActions/mobile-resources-native/package.json @@ -14,7 +14,7 @@ }, "testProject": { "githubUrl": "https://github.com/mendix/native-mobile-resources", - "branchName": "main" + "branchName": "mx/11.6.x" }, "scripts": { "prestart": "rimraf ./dist/**", diff --git a/packages/jsActions/nanoflow-actions-native/package.json b/packages/jsActions/nanoflow-actions-native/package.json index 9d5b3399d..b9e8a793e 100644 --- a/packages/jsActions/nanoflow-actions-native/package.json +++ b/packages/jsActions/nanoflow-actions-native/package.json @@ -14,7 +14,7 @@ }, "testProject": { "githubUrl": "https://github.com/mendix/native-mobile-resources", - "branchName": "main" + "branchName": "mx/11.6.x" }, "scripts": { "start": "rollup --config ../../../configs/jsactions/rollup.config.mjs --watch --configProject nanoflowcommons", 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;