async function getTags(execaOpts) {
  return (await execa.stdout('git', ['tag'], execaOpts))
    .split('\n')
    .map(tag => tag.trim())
    .filter(Boolean);
}
async function getTags(execaOpts) {
  return (await execa.stdout('git', ['tag'], execaOpts))
    .split('\n')
    .map(tag => tag.trim())
    .filter(Boolean);
}
async function getTags ( execaOpts ) { return ( await execa . stdout ( 'git' , [ 'tag' ] , execaOpts ) ) . split ( '\n' ) . map ( tag => tag . trim ( ) ) . filter ( Boolean ) ; }
Get all the repository tags.

@param {Object} [execaOpts] Options to pass to `execa`.

@return {Array<String>} List of git tags.
@throws {Error} If the `git` command fails.
Get all the repository tags .
Get all tags from the branch