Skip to content

Automate releases: release-please, changelog and NuGet publishing #5

Closed

Description

@vaceslav

Modelled on TriasDev.Templify.

  • release-please with conventional commits, a CHANGELOG.md, and the version bumped in one place (VersionPrefix in src/Directory.Build.props)
  • publish.yml: on a release, pack and push to nuget.org (and the .snupkg symbols) using a NUGET_API_KEY secret
  • Blocked by Reserve the TriasDev.* package ID prefix on NuGet.org #1 — reserve the TriasDev.* prefix before the first publish
  • Add CONTRIBUTING.md, SECURITY.md and CODE_OF_CONDUCT.md before announcing the package

Activity

  1. vaceslav commented on Sep 25, 2026

    @vaceslav
    ContributorAuthor

    From the pre-release review:

    • release-please must bump VersionPrefix in src/Directory.Build.props (xml updater with that xpath), not a csproj; configure 0.x bumping (bump-minor-pre-major, bump-patch-for-minor-pre-major).
    • Publish with nuget.org Trusted Publishing (GitHub OIDC via NuGet/login) instead of a long-lived API key; push .nupkg + .snupkg; attach them to the GitHub release.
    • Decide the nuget.org owner before the first push: TriasDev.Templify is owned by a personal account today; prefix reservation (Reserve the TriasDev.* package ID prefix on NuGet.org #1) and trusted-publishing policies bind to the owner — an organisation account is the durable choice.
    • CONTRIBUTING.md takes over the build/test/fixture/invariant content now only in CLAUDE.md (Docs and repository clean-up before the first release #17); SECURITY.md with a private reporting channel (GitHub private vulnerability reporting) — this library parses untrusted uploads; CODE_OF_CONDUCT.md.
    • Conventional-commit PR titles (one existing commit uses a non-standard bench: type — add it to the release-please sections or use test:/chore:).
  2. vaceslav commented on Sep 25, 2026

    @vaceslav
    ContributorAuthor

    Done in ef32fab.

    Release PR. release-please keeps release PR #26 open, and VersionPrefix is the single version source. The first version is pinned with release-as: 0.1.0.

    Publishing. It runs in release-please.yml, gated by the nuget environment (required reviewer, main only). Before pushing, it checks that tests ran on both targets. It publishes through Trusted Publishing (NuGet/login, OIDC): no API key is stored, and the nuget.org policy names TriasDev/tabular, release-please.yml and the nuget environment. It pushes the nupkg and the snupkg.

    Still open:

  3. vaceslav commented on Sep 25, 2026

    @vaceslav
    ContributorAuthor

    0.1.0 was released through this pipeline:

    • release-please produced chore(main): release 0.1.0 #26 and the tag v0.1.0;
    • the nuget environment was approved;
    • Trusted Publishing pushed the nupkg and snupkg (594 tests verified on each target).

    Package: https://www.nuget.org/packages/TriasDev.Tabular. After the release, release-as was removed and the package-validation baseline set to 0.1.0.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions