function getCurrentVersion() {
  let versionToUse = pkg.version;

  // i dont think this will ever happen, but just in case
  if (!pkg.version) {
    console.log('no version from package?');
    versionToUse = getLatestVersion();
  }

  return { listed: versionToUse, path: stringifySemverNumber(parseVersion(versionToUse), true) };
}
Try to get the current version on the checked-out branch
@returns {Version}