Skip to content

fix(ci): split Pack step to fix prerelease version mismatch#6

Merged
poxet merged 1 commit into
masterfrom
develop
Apr 29, 2026
Merged

fix(ci): split Pack step to fix prerelease version mismatch#6
poxet merged 1 commit into
masterfrom
develop

Conversation

@poxet
Copy link
Copy Markdown
Contributor

@poxet poxet commented Apr 29, 2026

Summary

Adopts the prerelease-pack pattern already in Tharga.Blazor/Mcp/Wpf. The single Pack step inherited from the Crawler reference template always stamps the stable version, so the prerelease job would push the stable .nupkg under a pre-release tag — and --skip-duplicate would then block the actual master release of that patch.

Build now packs:

  • stable version only on push to master
  • pre-release version only on pull_request

Resolves the "Tharga.Reporter — CI: Fix prerelease artifact version mismatch in build.yml" request from Tharga.Blazor (2026-04-29).

Test plan

  • This PR's build run packs 2.3.4-pre.1 (not 2.3.4)
  • prerelease job pushes 2.3.4-pre.1 to NuGet
  • After merge, release job packs and pushes 2.3.4 to NuGet

Pattern adopted from Tharga.Blazor/Mcp/Wpf. The single Pack step
in the Crawler reference template always stamps the stable
version; on a PR run the prerelease job would push that stable
.nupkg under a pre-release tag, and --skip-duplicate would then
block the actual master release.

Now the build job packs the stable version only on push to
master, and the pre-release version only on pull_request.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@poxet poxet merged commit 511474a into master Apr 29, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant