polyci 0.1.9 → 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.
- package/dist/main.js +5 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -279,6 +279,8 @@ function appendGlobalReleaseJob(lines, modules) {
|
|
|
279
279
|
lines.push(` stage: release`);
|
|
280
280
|
lines.push(` needs:`);
|
|
281
281
|
for (const module of modules) {
|
|
282
|
+
lines.push(` - job: ${module.moduleName}-build`);
|
|
283
|
+
lines.push(` optional: true`);
|
|
282
284
|
lines.push(` - job: ${module.moduleName}-release`);
|
|
283
285
|
lines.push(` optional: true`);
|
|
284
286
|
}
|
|
@@ -315,7 +317,7 @@ function appendGlobalReleaseJob(lines, modules) {
|
|
|
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`);
|
|
@@ -327,7 +329,8 @@ function appendGlobalReleaseJob(lines, modules) {
|
|
|
327
329
|
lines.push(` artifacts:`);
|
|
328
330
|
lines.push(` paths:`);
|
|
329
331
|
for (const module of modules) {
|
|
330
|
-
//
|
|
332
|
+
// dist is needed here because module release scripts may update files there.
|
|
333
|
+
lines.push(` - ${module.modulePath}/dist`);
|
|
331
334
|
lines.push(` - ${module.modulePath}/polyci.env`);
|
|
332
335
|
lines.push(` - ${module.modulePath}/package.json`);
|
|
333
336
|
}
|