getNewVersion = version => {
  const currentVersion = getCurrentVersion()
  const semverTypes = ['major', 'minor', 'patch']
  let newVersion
  if (semverTypes.includes(version)) {
    newVersion = semver.inc(currentVersion, version)
  } else {
    newVersion = version
  }
  return newVersion
}
Check next version based on semver
@param  {String|Number} version
@return {Number} newVersion