@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.
Files changed (2) hide show
  1. package/dist/index.js +13 -0
  2. 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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvnt/release-radar",
3
- "version": "1.9.15",
3
+ "version": "1.9.16",
4
4
  "description": "Monitor tool versions and notify via Telegram when updates are detected",
5
5
  "main": "dist/index.js",
6
6
  "bin": {