From 9c4cd2eb470de79eaa026ce8449d559f0a161374 Mon Sep 17 00:00:00 2001 From: Lukas Klingsbo Date: Thu, 11 Jan 2024 18:57:48 +0100 Subject: [PATCH] fix: Compare with correct version when publishing (#633) --- packages/melos/lib/src/commands/publish.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/melos/lib/src/commands/publish.dart b/packages/melos/lib/src/commands/publish.dart index f538a6770..a2a001295 100644 --- a/packages/melos/lib/src/commands/publish.dart +++ b/packages/melos/lib/src/commands/publish.dart @@ -108,7 +108,7 @@ mixin _PublishMixin on _ExecMixin { if (package.isPrivate) return; final pubPackage = await package.getPublishedPackage(); - final versions = pubPackage?.prioritizedVersions + final versions = pubPackage?.prioritizedVersions.reversed .map((v) => v.version.toString()) .toList();