polyci 0.0.25 → 0.0.27

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.
Files changed (2) hide show
  1. package/dist/main.js +8 -6
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -326,14 +326,14 @@ function appendModulePublishJob(lines, module) {
326
326
  lines.push(` MODULE_PATH: ${module.modulePath}`);
327
327
  lines.push(` MODULE_TYPE: ${module.moduleType}`);
328
328
  lines.push(` script:`);
329
- lines.push(` - cp ci/$MODULE_TYPE/Dockerfile $MODULE_PATH`);
330
- lines.push(` - cd $MODULE_PATH`);
329
+ lines.push(` - cp -r ci "${module.modulePath}/ci"`);
330
+ lines.push(` - cd ${module.modulePath}`);
331
331
  lines.push(` - source deploy.env`);
332
- lines.push(` - source "ci/$MODULE_TYPE/publish.sh"`);
332
+ lines.push(` - source "ci/${module.moduleType}/publish.sh"`);
333
333
  lines.push(` artifacts:`);
334
334
  lines.push(` paths:`);
335
- lines.push(` - $MODULE_PATH/deploy.env`);
336
- lines.push(` - $MODULE_PATH/package.json`);
335
+ lines.push(` - ${module.modulePath}/deploy.env`);
336
+ lines.push(` - ${module.modulePath}/package.json`);
337
337
  lines.push(` expire_in: 1 day`);
338
338
  lines.push(``);
339
339
  }
@@ -351,7 +351,9 @@ function appendModuleDeployJob(lines, module) {
351
351
  lines.push(` MODULE_PATH: ${module.modulePath}`);
352
352
  lines.push(` MODULE_TYPE: ${module.moduleType}`);
353
353
  lines.push(` script:`);
354
- lines.push(` - source $MODULE_PATH/deploy.env`);
354
+ lines.push(` - cp -r ci "${module.modulePath}/ci"`);
355
+ lines.push(` - cd ${module.modulePath}`);
356
+ lines.push(` - source deploy.env`);
355
357
  lines.push(` - source "ci/${module.moduleType}/deploy.sh"`);
356
358
  lines.push(``);
357
359
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "polyci",
3
3
  "description": "Monorepo CI/CD utilities.",
4
- "version": "0.0.25",
4
+ "version": "0.0.27",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "author": "Alexander Tsarev",