async function verifyTagName(tagName, execaOptions) {
  try {
    return (await execa("git", ["check-ref-format", `refs/tags/${tagName}`], execaOptions)).exitCode === 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.