We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29388ea commit 5667f0fCopy full SHA for 5667f0f
1 file changed
lib/git.js
@@ -135,7 +135,14 @@ export default class Git extends CoreGit {
135
136
const releaseTags = {};
137
138
- for ( const tag in tags ) {
+ for ( const tag of Object.keys( tags ).sort( ( a, b ) => {
139
+ try {
140
+ return SemanticVersion.compare( a.replace( ".", "-" ), b.replace( ".", "-" ) );
141
+ }
142
+ catch {
143
+ return a - b;
144
145
+ } ) ) {
146
releaseTags[ tag ] = {
147
"version": tags[ tag ].version,
148
"action": null,
0 commit comments