Skip to content

Trusted publishing and release preparation for 11.0.0 - #18

Merged
Timmoth merged 3 commits into
mainfrom
fix/package-advisories-and-sqlite
Nov 20, 2026
Merged

Timmoth merged 3 commits into
mainfrom
fix/package-advisories-and-sqlite

Conversation

@Timmoth

@Timmoth Timmoth commented Nov 20, 2026

Copy link
Copy Markdown
Owner

#17 was merged against a stale head, so these last three commits from that branch didn't reach main.

  • Trusted publishing: release.yml replaces publish.yml. On a v* tag it runs the full test suite, checks the tag matches <VersionPrefix> and that docs/releases.md has a section for it, packs AsyncMonolith and AsyncMonolith.TestHelpers, logs in to nuget.org as aptacode with GitHub's OIDC token (NuGet/login@v1), pushes the packages and symbols, and creates the GitHub release from the notes. Running it manually is a dry run.
  • Packing fix: GeneratePackageOnBuild made dotnet pack try to pack before the assembly was built (NU5026). The published projects are now marked with IsAsyncMonolithPackage, and the test workflow packs both packages on every push and PR.
  • Release notes and RELEASING.md: upgrade steps, corrected wording and an absolute docs link in the 11.0.0 notes, plus the release checklist.

Testing

  • The test workflow (fast tests and pack) passes on 3e8839e.
  • Packing from a clean checkout produces both packages with licence, README, icon, XML docs and symbols.

- release.yml replaces publish.yml. On a v* tag it runs the full test
  suite (fast and integration), checks the tag matches <VersionPrefix>
  and that docs/releases.md has a section for the version, packs
  AsyncMonolith and AsyncMonolith.TestHelpers, exchanges GitHub's OIDC
  token for a one-hour nuget.org key with NuGet/login, pushes the
  packages and symbols, and creates the GitHub release from the release
  notes with the packages attached. Running it manually is a dry run
  that stops before publishing. Publishing runs in the "release"
  environment so approvals can be required.
- The test workflow packs both packages on every push and PR, so
  package validation and metadata problems show up before a release.
- RELEASING.md covers the one-off nuget.org and GitHub setup, each
  release, and deprecating the five merged packages afterwards.
- The 11.0.0 notes gain upgrade steps, drop a stale item about
  ConsumerRegistry, say "deduplication key", and use an absolute docs
  link that works on the GitHub release page.
The profile name isn't sensitive, so the workflow names it directly
instead of reading a NUGET_USER secret.
GeneratePackageOnBuild packed as part of every build, and with an
explicit dotnet pack it tried to pack before the assembly was built
(NU5026), so packing only worked when an earlier Release build had left
the DLL behind. CI's new pack step caught it, and the release workflow's
pack job would have failed the same way.

Packing is explicit now, so the two published projects are marked with
IsAsyncMonolithPackage instead, which Directory.Build.targets uses for
the package metadata. Packing from a clean checkout works and the
packages keep their licence, README, icon, XML docs and symbols.
@Timmoth
Timmoth merged commit 5231fb7 into main Nov 20, 2026
4 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