function getLatestTag() {
  const tagSha = spawnSync('git', ['rev-list', '--tags', '--max-count=1']).stdout.toString().trim();
  const tagName =  spawnSync('git', ['describe', '--tags', tagSha]).stdout.toString().trim();

  return {
    sha: tagSha,
    name: tagName
  };
}
Resolves the latest tag over all branches from the repository metadata.
@returns {{sha: string, name: string}}