async function main(options) {
  const version = semver.valid(options.tag);
  if (!version) {
    return false;
  }

  const parsed = semver.parse(version);
  if (parsed.prerelease.length) {
    return false;
  }

  const latest = await getLatestRelease();
  return semver.gte(version, latest);
}
Check if a tag is ahead of the latest release.
@param {Options} options The options.
@return {boolean} The provided tag is ahead of or equal to the latest release.