lib/git.js
async function verifyTagName(tagName, execaOpts) {
  try {
    return (await execa('git', ['check-ref-format', `refs/tags/${tagName}`], execaOpts)).code === 0;
  } catch (error) {
    debug(error);
  }
}
async function verifyTagName(tagName, execaOpts) {
  try {
    return (await execa('git', ['check-ref-format', `refs/tags/${tagName}`], execaOpts)).code === 0;
  } catch (error) {
    debug(error);
  }
}
async function verifyTagName ( tagName , execaOpts ) { try { return ( await execa ( 'git' , [ 'check-ref-format' , ` ${ tagName } ` ] , execaOpts ) ) . code === 0 ; } catch ( error ) { debug ( error ) ; } }
Verify a tag name is a valid Git reference.

@param {String} tagName the tag name to verify.
@param {Object} [execaOpts] Options to pass to `execa`.

@return {Boolean} `true` if valid, falsy otherwise.
Verify a tag name is a valid Git reference .