Skip to content

Commit

Permalink
Fix NMR module automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Antonelli committed May 17, 2023
1 parent 404fe2f commit e4bd9e2
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions scripts/release/createNativeModules.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ async function createNativeMobileResourcesModule() {
const mpkOutput = await createMPK(tmpFolder, moduleInfo, regex.excludeFiles);
await exportModuleWithWidgets(moduleInfo.moduleNameInModeler, mpkOutput, nativeWidgetFolders);
await createGithubRelease(moduleInfo, moduleChangelogs, mpkOutput);
await execShellCommand(`rm -rf ${tmpFolder}`);
if (process.env.CI !== "true") {
try {
await execShellCommand(`rm -rf ${tmpFolder}`);
} catch (e) {
console.error("Failed to remove the temporary folder");
}
}
console.log("Done.");
}

Expand All @@ -86,7 +92,13 @@ async function createNanoflowCommonsModule() {
await updateNativeComponentsTestProject(moduleInfo, tmpFolder);
const mpkOutput = await createMPK(tmpFolder, moduleInfo, regex.excludeFiles);
await createGithubRelease(moduleInfo, moduleChangelogs, mpkOutput);
await execShellCommand(`rm -rf ${tmpFolder}`);
if (process.env.CI !== "true") {
try {
await execShellCommand(`rm -rf ${tmpFolder}`);
} catch (e) {
console.error("Failed to remove the temporary folder");
}
}
console.log("Done.");
}

Expand Down

0 comments on commit e4bd9e2

Please sign in to comment.