@lvnt/release-radar 1.9.15 ā 1.9.16
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/index.js +13 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -450,6 +450,19 @@ bot.onText(/\/mirrorall/, async (msg) => {
|
|
|
450
450
|
message += `\n\nā ${failCount} failed:\n${failures.join('\n')}`;
|
|
451
451
|
}
|
|
452
452
|
await bot.sendMessage(validatedChatId, message);
|
|
453
|
+
// Auto-publish CLI if mirroring succeeded and publisher is configured
|
|
454
|
+
if (successCount > 0 && cliPublisher.isConfigured()) {
|
|
455
|
+
const state = storage.load();
|
|
456
|
+
const mirrorUrls = storage.getAllMirrorUrls();
|
|
457
|
+
console.log(`[mirrorall] Auto-publishing CLI with ${Object.keys(mirrorUrls).length} mirror URLs`);
|
|
458
|
+
const publishResult = await cliPublisher.publish(state.versions, mirrorUrls);
|
|
459
|
+
if (publishResult.success) {
|
|
460
|
+
await bot.sendMessage(validatedChatId, `š¦ CLI published: v${publishResult.version}`);
|
|
461
|
+
}
|
|
462
|
+
else {
|
|
463
|
+
await bot.sendMessage(validatedChatId, `ā ļø CLI publish failed: ${publishResult.error}`);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
453
466
|
});
|
|
454
467
|
bot.onText(/\/mirror(?:\s+(.+))?/, async (msg, match) => {
|
|
455
468
|
if (msg.chat.id.toString() !== validatedChatId)
|