set shell := ["bash", "-eu", "-o", "pipefail", "-c"]

# Use Corepack to ensure the pinned modern Yarn version is installed.
yarn := "env YARN_ENABLE_GLOBAL_CACHE=0 YARN_CACHE_FOLDER=../../.yarn/cache corepack yarn"

# Show the release-tooling recipes available in this directory.
help:
    @just --list

# Install the pinned semantic-release tooling used by local and CI release tasks.
install:
    {{ yarn }} install --immutable

# Preview the next semantic-release result for the current checkout.
preview:
    {{ yarn }} release:dry-run

# Run semantic-release for the current checkout.
run:
    {{ yarn }} release
