fix: replace version prefix v

This commit is contained in:
Innei
2022-02-09 18:53:45 +08:00
parent df02969525
commit e48be8383b
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ const endpoint = `https://api.github.com/repos/${repo}/releases/latest`
const latestVersion = async () => {
const res = await axios.get(endpoint)
return res.data.tag_name
return res.data.tag_name.replace(/^v/, '')
}
async function main() {
const version = await latestVersion()