From dc06cb4e28ea0b021db15c5b86a390f01cecf56a Mon Sep 17 00:00:00 2001 From: Ahad Birang Date: Fri, 2 Sep 2022 14:37:38 +0200 Subject: [PATCH] fix: use `creatordate` to find last tag --- src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.ts b/src/git.ts index 13aef3a..2af2b1c 100644 --- a/src/git.ts +++ b/src/git.ts @@ -27,7 +27,7 @@ export interface GitCommit extends RawGitCommit { } export async function getLastGitTag () { - const r = await execCommand('git', ['--no-pager', 'tag', '-l', '--sort=taggerdate']).then(r => r.split('\n')) + const r = await execCommand('git', ['--no-pager', 'tag', '-l', '--sort=creatordate']).then(r => r.split('\n')) return r[r.length - 1] }