Skip to content

Release: publish the packages CI packed instead of building them again, and check the tag before CI #247

Open

Description

@CaffeinatedCoder

Why

A tag waits about 39 minutes before the approval gate opens: release.yml calls dotnet.yml with every lane (18 min for v2.3.0, run 40956460744), then verify builds, tests, packs, smoke-tests and generates SBOMs again (20m34s). CI's Pack job already packs this commit, smoke-tests that dist against the packed feed, generates the SBOMs and uploads them as the nupkg artifact of the same run. The tag and changelog checks, which take seconds, run only after the 18 minutes of CI, so a mistyped tag fails late.

Proposal

  • A preflight job ahead of ci: resolve the version, check the tag against it and the changelog's dated heading. ci needs it.
  • verify downloads CI's nupkg artifact instead of building it again. It checks the downloaded packages carry the resolved version and re-uploads them as nupkg-<version>, or publish downloads CI's artifact directly. The packages published are still the packages the smoke test installed.
  • The Pack job whose packages are published restores without a cache: ci passes publishing: true to dotnet.yml, which turns every cache step off (CI: cache NuGet packages in the test legs and the Pack job #249). What nuget.org receives is built from packages restored from nuget.org, as verify builds it today.
  • Keep the permission split as it is: no job that can mint a token writes to the repository, and the reverse.
  • A decision record amending 0113's release part. ReleaseWiringTests move with it, in particular the job keys, verify needs ci, and the pack and smoke steps carry no condition.

Done when

A dry run (workflow_dispatch, dry_run: true) and the next tag publish what CI packed, with no second build. The time from tag to approval is measured in this issue. A tag that disagrees with Directory.Build.props fails within a minute. The dry run's Pack job shows no cache restored.

Activity

  1. added this to the 2.4.0 milestone on Oct 31, 2026
  2. added
    chore
    area/release
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/releasechore

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions