From 569f0ce136ebad7ce0a79d9c158546168405b502 Mon Sep 17 00:00:00 2001 From: Yogendra Shelke Date: Wed, 25 Feb 2026 15:54:42 +0530 Subject: [PATCH 1/2] feat: enhance cloneRepo function to accept branch name parameter --- scripts/release/build-mpk.ts | 2 +- scripts/release/module-automation/commons.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; From b4869a08dd94ab4ab6a619abc8c60db7db48bec3 Mon Sep 17 00:00:00 2001 From: Yogendra Shelke Date: Wed, 25 Feb 2026 15:54:57 +0530 Subject: [PATCH 2/2] fix: update testProject branchName to mx/11.6.x in package.json files --- packages/jsActions/mobile-resources-native/package.json | 2 +- packages/jsActions/nanoflow-actions-native/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",