Skip to content

chore(release): walk src/*/*.csproj in publish; drop release-as override#26

Merged
MarcelRoozekrans merged 1 commit into
mainfrom
chore/release-please-walk-src-projects
May 22, 2026
Merged

chore(release): walk src/*/*.csproj in publish; drop release-as override#26
MarcelRoozekrans merged 1 commit into
mainfrom
chore/release-please-walk-src-projects

Conversation

@MarcelRoozekrans

Copy link
Copy Markdown
Contributor

Summary

Two small followups to the 2.0.2 publish:

  1. release-please.yml publish job walks src/*/*.csproj instead of hardcoding src/ZeroAlloc.Authorization/...csproj. When the standalone ZeroAlloc.Authorization.Generator project landed in 2.0.1, this workflow continued packing only the main package — the rescue `Publish from manifest` had to step in for both 2.0.1 and 2.0.2 publishes to push the Generator package. With this change, future sub-package additions publish automatically. `dotnet pack` on `IsPackable=false` projects produces no .nupkg, so the loop is safe.

    The test step also drops its hardcoded tests/ZeroAlloc.Authorization.Tests/... path and now runs the full solution via `dotnet test`. This picks up new test projects (e.g. `PackSmoke`) without further workflow edits.

  2. release-please-config.json drops \"release-as\": \"2.0.2\" — 2.0.2 has shipped; conventional-commit-driven bumps are correct from here.

Why bundled

Both are tiny diffs touching the publish/release plumbing only; bundling avoids two trivial admin-bypass merges. No source/runtime changes.

Test plan

  • CI green
  • Next conventional-commit-bumped release exercises the multi-project publish loop in CI (Publish from manifest rescue should not be needed)

🤖 Generated with Claude Code

…-as override

Two small followups to the 2.0.2 publish:

1. release-please.yml's publish job was hardcoded to pack only
   src/ZeroAlloc.Authorization/ZeroAlloc.Authorization.csproj. When the
   standalone ZeroAlloc.Authorization.Generator project landed in 2.0.1,
   release-please continued packing only the main package — the rescue
   publish-from-manifest.yml workflow was needed to push the Generator
   package. This patch loops over src/*/*.csproj like
   publish-from-manifest.yml does, so future sub-package additions
   publish automatically. dotnet pack on IsPackable=false projects
   produces no .nupkg, so the loop is safe.

   The test step also dropped its hardcoded path
   (tests/ZeroAlloc.Authorization.Tests/...) and now runs the full
   solution's tests via plain `dotnet test`. This catches regressions
   in any new test project (PackSmoke, future suites) without further
   workflow edits.

2. release-please-config.json drops "release-as": "2.0.2". 2.0.2 has
   shipped; conventional-commit-driven bumps are correct from here on.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MarcelRoozekrans
MarcelRoozekrans merged commit cda5b6d into main May 22, 2026
4 checks passed
@MarcelRoozekrans
MarcelRoozekrans deleted the chore/release-please-walk-src-projects branch May 22, 2026 08:04
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