• Returns the latest tag of a git repository.

    Parameters

    • Optionaldirectory: string

      The directory to check.

    Returns Promise<string | undefined>

    String with the latest tag or undefined if no tags are found.