From b19e7d521e4335efe8ca91463a55f31b64ee736a Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Mon, 8 Jun 2026 20:45:47 +0300 Subject: [PATCH] ci: dogfood semvertag 0.3.0 against this repo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-tags on push to main when the latest commit is a feat/ merge (minor) or bugfix/hotfix/ merge (patch). The default branch_prefix mapping is `feature/`; this repo uses `feat/` so the workflow overrides SEMVERTAG_BRANCH_PREFIX__MINOR. Tag creation does NOT trigger publish.yml (which fires on GitHub release creation, not tag push) — to publish to PyPI, create a release pointed at the auto-tagged commit. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/semvertag.yml | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/semvertag.yml diff --git a/.github/workflows/semvertag.yml b/.github/workflows/semvertag.yml new file mode 100644 index 0000000..1dca274 --- /dev/null +++ b/.github/workflows/semvertag.yml @@ -0,0 +1,37 @@ +name: semvertag + +# Dogfood semvertag against this repo. Auto-tags on push to main when the latest +# commit is a merge from `feat/...` (minor bump) or `bugfix/`/`hotfix/...` (patch). +# This repo's branch convention is `feat/...`, so SEMVERTAG_BRANCH_PREFIX__MINOR +# overrides the default `feature/` mapping. +# +# The workflow only creates a tag — it does NOT trigger publish.yml (which fires +# on GitHub release creation). To publish to PyPI, create a GitHub release pointed +# at the auto-tagged commit. + +on: + push: + branches: [main] + +permissions: + contents: write + +concurrency: + group: semvertag + cancel-in-progress: false + +jobs: + tag: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + - run: pip install --quiet --no-cache-dir 'uv>=0.4,<1' + - run: uvx 'semvertag>=0.3,<1' tag + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SEMVERTAG_BRANCH_PREFIX__MINOR: '["feat/"]'