• Returns the latest tag of a git repository.

    Parameters

    • Optionaldirectory: string

      The directory to check.

    Returns Promise<undefined | string>

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