Skip to content

Commit

Permalink
fix: Compare with correct version when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon committed Jan 11, 2024
1 parent 9a300ec commit b88508c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/melos/lib/src/commands/publish.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit b88508c

Please sign in to comment.