Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.54 KB

File metadata and controls

41 lines (31 loc) · 1.54 KB

GitHub Action: Setup GitVersion

Idempotently installs the toolchain behind the gitversion devcontainer feature (a no-op if it's already on PATH): a docker-wrapped GitVersion CLI, plus the gv/bump-tag/bump-changelog/bump-version scripts, fetched directly from that feature's source rather than run through its own installer — that installer is built for onboarding a dev environment and deploys stub files (.gitattributes, package.json merges, VS Code tasks, skills) into the checked-out repo, unwanted noise for a CI release job that only needs the CLI tools on PATH. git-release-beta/git-release-prod (from tomgrv/scripts) call these directly to compute the release version and bump the changelog/tag — they're a separate dependency from the scripts themselves, so release-promote installs this alongside setup-scripts, not instead of it.

The target repo must have a .gitversion config file at its root (see tomgrv/actions/.gitversion for the family's shared bump-message rules) — gv hardcodes -config ".gitversion".

Inputs

None.

Works well with

  • release-promote — installs this alongside setup-scripts before running git-release-beta/git-release-prod.

Local Usage

steps:
    - uses: tomgrv/actions/setup-gitversion@v1

    - run: gv -showvariable MajorMinorPatch