From f502a6b920b63039cd0ce92e82928164f8a80b74 Mon Sep 17 00:00:00 2001 From: Mauro Servienti Date: Sun, 1 Nov 2026 17:36:56 +0100 Subject: [PATCH] The tag filters only matched single-digit majors and stable patches, so tags such as 5.2.10 or 10.0.0 published nothing. The stable tag check was unanchored and unescaped, so a pre-release tag ending in three numbers, such as 1.0.0-alpha.1.2.3, would have been published to NuGet.org as stable. Publish releases for multi-digit version numbers --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9316177..bbcc914 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,8 @@ name: CI on: push: tags: - - '[0-9].[0-9]+.[0-9]' - - '[0-9].[0-9]+.[0-9]+-*' + - '[0-9]+.[0-9]+.[0-9]+' + - '[0-9]+.[0-9]+.[0-9]+-*' branches: - master - release-* @@ -68,7 +68,7 @@ jobs: id: check-tag-type if: github.ref_type == 'tag' run: | - if [[ ${{ github.ref_name }} =~ [0-9]+.[0-9]+.[0-9]+$ ]]; then + if [[ ${{ github.ref_name }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "release-type=production" >> $GITHUB_OUTPUT else echo "release-type=pre-release" >> $GITHUB_OUTPUT