From 811a34d9957793278e2682e2a38c3529862b9357 Mon Sep 17 00:00:00 2001 From: Bryan Fawcett Date: Sun, 4 Oct 2026 21:13:56 +0800 Subject: [PATCH] ci: tag each merge into staging as the next patch Every merge into staging is now released as the next patch, tagged on the merged commit by nyuchi/.github's reusable-staging-release.yml (pinned by SHA). The tag is pushed with GITHUB_TOKEN, so no tag-triggered workflow runs for a beta build. Refs nyuchi/.github#80, nyuchi/.github#84 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017T4NxM5wbhJ3LjHt7bnuwr Signed-off-by: Bryan Fawcett --- .github/workflows/staging-version.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/staging-version.yml diff --git a/.github/workflows/staging-version.yml b/.github/workflows/staging-version.yml new file mode 100644 index 0000000..4cc02fa --- /dev/null +++ b/.github/workflows/staging-version.yml @@ -0,0 +1,25 @@ +# Versioning policy (nyuchi/.github#80): every merge into `staging` is +# released as the next PATCH, tagged on the merged commit. +name: Staging version + +on: + push: + branches: [staging] + workflow_dispatch: + inputs: + bump: + description: Override the bump (major is only ever manual). + type: choice + options: [patch, minor, major] + default: patch + +permissions: + contents: read + +jobs: + version: + uses: nyuchi/.github/.github/workflows/reusable-staging-release.yml@924e5b4d0983d31379aedbec02b990793f29c792 # main, 2026-10-04 + with: + bump: ${{ inputs.bump || '' }} + permissions: + contents: write