Skip to content

Commit cb0f4c0

Browse files
committed
chore: Use v2 tags for changelog gen
1 parent 796955e commit cb0f4c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export async function getLatestTag () {
112112
}
113113

114114
export async function getLatestReleasedTag () {
115-
const latestReleasedTag = await exec('git', ['tag', '-l']).then(r => r.stdout.trim().split('\n').filter(t => /v1\.\d+\.\d+/.test(t)).sort(compare)).then(r => r.pop()!.trim())
115+
const latestReleasedTag = await exec('git', ['tag', '-l']).then(r => r.stdout.trim().split('\n').filter(t => /v2\.\d+\.\d+/.test(t)).sort(compare)).then(r => r.pop()!.trim())
116116
return latestReleasedTag
117117
}
118118

0 commit comments

Comments
 (0)