polyci 0.1.8 → 0.1.10

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 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -194,6 +194,7 @@ function appendModuleBuildJob(lines, module) {
194
194
  lines.push(` artifacts:`);
195
195
  lines.push(` paths:`);
196
196
  lines.push(` - ${module.modulePath}/dist`);
197
+ lines.push(` - ${module.modulePath}/node_modules`);
197
198
  lines.push(` - ${module.modulePath}/polyci.env`);
198
199
  lines.push(` expire_in: 1 day`);
199
200
  lines.push(``);
@@ -216,7 +217,7 @@ function appendModuleTestJob(lines, module) {
216
217
  lines.push(` - source "ci/${module.moduleType}/test.sh"`);
217
218
  lines.push(` artifacts:`);
218
219
  lines.push(` paths:`);
219
- lines.push(` - ${module.modulePath}/dist`);
220
+ // lines.push(` - ${module.modulePath}/dist`);
220
221
  lines.push(` - ${module.modulePath}/polyci.env`);
221
222
  lines.push(``);
222
223
  }
@@ -268,7 +269,7 @@ function appendModuleReleaseJob(lines, module, tagPattern, branchTagPattern, mai
268
269
  lines.push(` fi`);
269
270
  lines.push(` artifacts:`);
270
271
  lines.push(` paths:`);
271
- lines.push(` - ${module.modulePath}/dist`);
272
+ // lines.push(` - ${module.modulePath}/dist`);
272
273
  lines.push(` - ${module.modulePath}/polyci.env`);
273
274
  lines.push(` expire_in: 1 day`);
274
275
  lines.push(``);
@@ -278,6 +279,8 @@ function appendGlobalReleaseJob(lines, modules) {
278
279
  lines.push(` stage: release`);
279
280
  lines.push(` needs:`);
280
281
  for (const module of modules) {
282
+ lines.push(` - job: ${module.moduleName}-build`);
283
+ lines.push(` optional: true`);
281
284
  lines.push(` - job: ${module.moduleName}-release`);
282
285
  lines.push(` optional: true`);
283
286
  }
@@ -314,7 +317,7 @@ function appendGlobalReleaseJob(lines, modules) {
314
317
  lines.push(``);
315
318
  lines.push(` - |`);
316
319
  lines.push(` if [ -n "$TAG_NAMES" ]; then`);
317
- lines.push(` git commit --allow-empty -m "release: \${RELEASE_MESSAGE}"`);
320
+ lines.push(` git commit --allow-empty -m "release. \${RELEASE_MESSAGE}".`);
318
321
  lines.push(` for TAG_NAME in \${TAG_NAMES}; do`);
319
322
  lines.push(` git tag "\${TAG_NAME}"`);
320
323
  lines.push(` done`);
@@ -326,6 +329,7 @@ function appendGlobalReleaseJob(lines, modules) {
326
329
  lines.push(` artifacts:`);
327
330
  lines.push(` paths:`);
328
331
  for (const module of modules) {
332
+ // dist is needed here because module release scripts may update files there.
329
333
  lines.push(` - ${module.modulePath}/dist`);
330
334
  lines.push(` - ${module.modulePath}/polyci.env`);
331
335
  lines.push(` - ${module.modulePath}/package.json`);
@@ -340,6 +344,7 @@ function appendModulePublishJob(lines, module) {
340
344
  lines.push(` - changes:`);
341
345
  lines.push(` - ${module.modulePath}/**/*`);
342
346
  lines.push(` needs:`);
347
+ lines.push(` - job: ${module.moduleName}-build`);
343
348
  lines.push(` - job: release`);
344
349
  lines.push(` image: $IMAGE_NODE`);
345
350
  lines.push(` script:`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "polyci",
3
3
  "description": "Monorepo CI/CD utilities.",
4
- "version": "0.1.8",
4
+ "version": "0.1.10",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "author": "Alexander Tsarev",