@docupace/pipeline 1.0.69 → 1.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,6 +16,8 @@ export async function getAuth0Metadata(site, env, auth0Tenant) {
16
16
  stage: 'stage',
17
17
  uat: 'uat',
18
18
  'prod-www3': 'prod',
19
+ 'prod-lax': 'prod',
20
+ 'prod-las': 'prod',
19
21
  };
20
22
 
21
23
  process.chdir(`${connectDeployRepoPath}/envs/${env}/${site}`);
@@ -222,6 +222,9 @@ async function runPreparePhase(
222
222
  case 3:
223
223
  console.log(`⚠️ ${configName}: Build failed`);
224
224
  break;
225
+ case 4:
226
+ console.log(`✅ ${configName}: No Changes`);
227
+ break;
225
228
  default:
226
229
  console.log(
227
230
  `❌ ${configName}: Unknown error (exit code: ${result.exitCode})`,
@@ -239,7 +242,9 @@ async function runFollowUpPhase(prepareResults, verbose = false) {
239
242
  console.log(`\n🔄 Phase 2: Running follow-up based on prepare phase results`);
240
243
 
241
244
  // Check if all repositories passed
242
- const allPassed = prepareResults.every((r) => r.exitCode === 0);
245
+ const allPassed = prepareResults.every(
246
+ (r) => r.exitCode === 0 || r.exitCode === 4,
247
+ );
243
248
 
244
249
  for (let i = 0; i < prepareResults.length; i++) {
245
250
  const result = prepareResults[i];
@@ -281,24 +286,26 @@ async function runFollowUpPhase(prepareResults, verbose = false) {
281
286
 
282
287
  console.log(` Action: ${action}`);
283
288
 
284
- const followUpResult = runMergeCommand(
285
- result.repoPath,
286
- result.fromBranch,
287
- result.toBranch,
288
- result.buildScript,
289
- flags,
290
- verbose,
291
- );
289
+ if (result.exitCode !== 4) {
290
+ const followUpResult = runMergeCommand(
291
+ result.repoPath,
292
+ result.fromBranch,
293
+ result.toBranch,
294
+ result.buildScript,
295
+ flags,
296
+ verbose,
297
+ );
292
298
 
293
- // Update the result with follow-up information
294
- result.followUpExitCode = followUpResult.exitCode;
295
- result.followUpError = followUpResult.error;
296
- result.followUpAction = action;
299
+ // Update the result with follow-up information
300
+ result.followUpExitCode = followUpResult.exitCode;
301
+ result.followUpError = followUpResult.error;
302
+ result.followUpAction = action;
297
303
 
298
- if (followUpResult.exitCode === 0) {
299
- console.log(`✅ ${result.configName}: ${action} completed`);
300
- } else {
301
- console.log(`❌ ${result.configName}: ${action} failed`);
304
+ if (followUpResult.exitCode === 0) {
305
+ console.log(`✅ ${result.configName}: ${action} completed`);
306
+ } else {
307
+ console.log(`❌ ${result.configName}: ${action} failed`);
308
+ }
302
309
  }
303
310
  }
304
311
 
@@ -327,7 +327,7 @@ export function setupMerge(program) {
327
327
  console.log('✅ No changes to merge');
328
328
  execSync(`git checkout ${targetBranch}`, { stdio: 'pipe' });
329
329
  execSync(`git branch -d ${mergeBranchName}`, { stdio: 'pipe' });
330
- return;
330
+ process.exit(4);
331
331
  }
332
332
 
333
333
  // 4. If conflicts, try auto-resolve