Skip to content

fix: mark prereleases as prereleases - #35

Merged
ivanvyd merged 1 commit into
mainfrom
fix/mark-prereleases
Aug 1, 2026
Merged

fix: mark prereleases as prereleases#35
ivanvyd merged 1 commit into
mainfrom
fix/mark-prereleases

Conversation

@ivanvyd

@ivanvyd ivanvyd commented Aug 1, 2026

Copy link
Copy Markdown
Owner

softprops/action-gh-release defaults to a full release. 0.1.0-preview.1 therefore published as "Latest release" — telling anyone arriving at the repo that a preview is the stable build.

Now derived from the version, since SemVer treats any hyphen as a prerelease marker:

prerelease: ${{ contains(needs.build.outputs.version, '-') }}

The already-published release was corrected by hand with gh release edit --prerelease.

Also

RELEASING.md now records that the trusted-publishing policy was verified by an actual publish, not by reading the form — and quotes the exact error nuget.org returns on a field mismatch:

Workflow mismatch for policy 'LakeSpeak.NET': expected 'publish.yml', actual 'release.yml'

It names both sides, which turns a guess into a one-line fix. Worth writing down, because the value of the exchange failing closed is precisely that you get to read the error and retry — no package was pushed, no version burnt.

…sh taught

action-gh-release defaults to a full release. 0.1.0-preview.1 therefore
published as "Latest release", telling everyone arriving at the repo that a
preview is the stable build. Now derived from the version: SemVer treats any
hyphen as a prerelease marker. The already-published release was corrected by
hand.

RELEASING.md now records that the policy was verified by an actual publish
rather than by reading the form, and quotes the exact error nuget.org returns on
a field mismatch. It names both the expected and actual value, which turns a
guess into a one-line fix -- worth writing down because the whole point of the
token exchange failing closed is that you get to read the error and retry.
@ivanvyd
ivanvyd merged commit 43ceb59 into main Aug 1, 2026
10 checks passed
@ivanvyd
ivanvyd deleted the fix/mark-prereleases branch August 1, 2026 15:08
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