mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 14:41:25 +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() {
|
async function getLastGitTag() {
|
||||||
const r = await execCommand('git', ['describe'])
|
const r = await execCommand('git', ['--no-pager', 'tag', '-l']).then(r => r.split('\n'))
|
||||||
return /^[^-]+/.exec(r)[0]
|
return r[r.length - 1]
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getCurrentGitBranch() {
|
async function getCurrentGitBranch() {
|
||||||
|
Loading…
Reference in New Issue
Block a user