polyci 0.1.2 → 0.1.5
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/dist/main.js +7 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -293,6 +293,7 @@ function appendGlobalReleaseJob(lines, modules) {
|
|
|
293
293
|
lines.push(` - git config user.name "polyci"`);
|
|
294
294
|
lines.push(` - git remote set-url origin "https://oauth2:\${POLYCI_TOKEN}@\${CI_SERVER_HOST}/\${CI_PROJECT_PATH}.git"`);
|
|
295
295
|
lines.push(` - TAG_NAMES=""`);
|
|
296
|
+
lines.push(` - RELEASE_MESSAGE=""`);
|
|
296
297
|
lines.push(``);
|
|
297
298
|
for (const module of modules) {
|
|
298
299
|
lines.push(` - |`);
|
|
@@ -309,13 +310,14 @@ function appendGlobalReleaseJob(lines, modules) {
|
|
|
309
310
|
lines.push(` source "ci/${module.moduleType}/release.sh"`);
|
|
310
311
|
lines.push(` cd "$ROOT_REPO_DIR"`);
|
|
311
312
|
lines.push(` TAG_NAMES="\${TAG_NAMES} \${PLI_MODULE_TAG}"`);
|
|
313
|
+
lines.push(` RELEASE_MESSAGE="\${RELEASE_MESSAGE}\${RELEASE_MESSAGE:+, }\${PLI_MODULE_NAME} (\${PLI_MODULE_VERSION})"`);
|
|
312
314
|
lines.push(` fi`);
|
|
313
315
|
lines.push(` fi`);
|
|
314
316
|
}
|
|
315
317
|
lines.push(``);
|
|
316
318
|
lines.push(` - |`);
|
|
317
319
|
lines.push(` if [ -n "$TAG_NAMES" ]; then`);
|
|
318
|
-
lines.push(` git commit --allow-empty -m "release:
|
|
320
|
+
lines.push(` git commit --allow-empty -m "release: \${RELEASE_MESSAGE}"`);
|
|
319
321
|
lines.push(` for TAG_NAME in \${TAG_NAMES}; do`);
|
|
320
322
|
lines.push(` git tag "\${TAG_NAME}"`);
|
|
321
323
|
lines.push(` done`);
|
|
@@ -349,7 +351,8 @@ function appendModulePublishJob(lines, module) {
|
|
|
349
351
|
lines.push(` - cd ${module.modulePath}`);
|
|
350
352
|
lines.push(` - cat polyci.env`);
|
|
351
353
|
lines.push(` - source polyci.env`);
|
|
352
|
-
lines.push(` -
|
|
354
|
+
lines.push(` - |`);
|
|
355
|
+
lines.push(` if [ -n "\${PLI_MODULE_VERSION:-}" ]; then`);
|
|
353
356
|
lines.push(` source "ci/${module.moduleType}/publish.sh"`);
|
|
354
357
|
lines.push(` else`);
|
|
355
358
|
lines.push(` echo "No new version. Skipping publish."`);
|
|
@@ -375,7 +378,8 @@ function appendModuleDeployJob(lines, module) {
|
|
|
375
378
|
lines.push(` - cd ${module.modulePath}`);
|
|
376
379
|
lines.push(` - cat polyci.env`);
|
|
377
380
|
lines.push(` - source polyci.env`);
|
|
378
|
-
lines.push(` -
|
|
381
|
+
lines.push(` - |`);
|
|
382
|
+
lines.push(` if [ -n "\${PLI_MODULE_VERSION:-}" ]; then`);
|
|
379
383
|
lines.push(` source "ci/${module.moduleType}/deploy.sh"`);
|
|
380
384
|
lines.push(` else`);
|
|
381
385
|
lines.push(` echo "No new version. Skipping deploy."`);
|