From ad69987d7681fc35b681f64483172c07f4bbeb17 Mon Sep 17 00:00:00 2001 From: Kieron Lanning Date: Mon, 16 Nov 2026 10:42:44 +0000 Subject: [PATCH] ci: resolve the shared build pipeline at job time and use .NET 11 Both the PR gate and the release pinned Purview.Build at 0.8.1 while the shared pipeline has moved to 0.9.1, so this repository was running a two-versions-stale gate - and the release failed in CreateGitHubReleaseModule for it. The version is now omitted, which is what the reusable workflow documents: the latest stable Purview.Build is installed at job time. The SDK the pipeline installs is still pinned, at 11.0.x: the runner image's .NET drifts between builds, and the projects this site documents target net11.0. There is no global.json here, so this input is the one that decides. Release gains workflow_dispatch so a failed release can be retried without a package.json change, which is the only other way the workflow is triggered. --- .github/workflows/pr.yml | 9 +++++---- .github/workflows/release.yml | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 18e69d6..a00838a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,8 +8,9 @@ jobs: build: uses: purview-dev/build/.github/workflows/purview-build.yml@main with: - # Pin the shared build tool and SDK so the pipeline is reproducible rather - # than resolving the latest Purview.Build and .NET SDK at job time. - build-version: 0.8.1 - dotnet-version: 10.0.x + # The shared pipeline is resolved at job time rather than pinned: this + # repository then always runs the current Purview.Build (a pin froze the + # gate at 0.8.1 while the pipeline moved on to 0.9.1). Only the SDK is + # pinned, because the runner image's .NET drifts between builds. + dotnet-version: 11.0.x secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 194641b..1988282 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: branches: [main] paths: - package.json + # A release that failed can be retried without touching package.json: the + # pipeline is resolved at job time, so a re-dispatch runs the current one. + workflow_dispatch: # Serialize releases; the reusable workflow skips when the v{version} tag already exists. concurrency: @@ -15,10 +18,8 @@ jobs: release: uses: purview-dev/build/.github/workflows/purview-release.yml@main with: - # Pin the shared build tool and SDK so the release is reproducible rather - # than resolving the latest Purview.Build and .NET SDK at job time. - build-version: 0.8.1 - dotnet-version: 10.0.x + # Resolved at job time, like the PR gate (see pr.yml). + dotnet-version: 11.0.x # The site publishes no NuGet package; tag + GitHub release (with the dist zip attached) only. release-mode: GitHubRelease upload-artifacts: true