mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix last tag detection
This commit is contained in:
parent
a5cf705ed8
commit
3539c64b35
@ -63,8 +63,8 @@ function execCommand(cmd, args) {
|
||||
}
|
||||
|
||||
async function getLastGitTag() {
|
||||
const r = await execCommand('git', ['describe'])
|
||||
return /^[^-]+/.exec(r)[0]
|
||||
const r = await execCommand('git', ['--no-pager', 'tag', '-l']).then(r => r.split('\n'))
|
||||
return r[r.length - 1]
|
||||
}
|
||||
|
||||
async function getCurrentGitBranch() {
|
||||
|
Loading…
Reference in New Issue
Block a user