Remove leading 'v' from latest tag in getLatestTag

Updated the getLatestTag function to strip a leading 'v' character from the latest tag before returning it. This ensures tag values are returned without the 'v' prefix.
This commit is contained in:
手瓜一十雪 2025-11-25 23:09:53 +08:00
parent d31f0a45b4
commit f9c0b9d106

View File

@ -268,7 +268,8 @@ export async function getLatestTag (): Promise<string> {
if (!latest) {
throw new Error('No tags found');
}
return latest;
// 去掉开头的 v
return latest.replace(/^v/, '');
}