Skip to content

Manage package versions centrally and release from the release-drafter draft - #47

Merged
Mpdreamz merged 4 commits into
mainfrom
feature/nullean-release
Nov 11, 2026
Merged

Mpdreamz merged 4 commits into
mainfrom
feature/nullean-release

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Package versions now live in one file, the packages carry the standard nullean metadata and a README, and assembly-differ releases when its release-drafter draft is published instead of when a tag is pushed. Each pull request carries exactly one label, and that label decides the next version.

Prompt summary: Bring every nullean repository onto one standard: Central Package Management, consistent package metadata with a README and icon in every package, and releases cut by publishing the release-drafter draft. This applies steps 2 and 3 of the rollout playbook together, as proven on nullean/proc#37 and nullean/proc#38.

Why

Versions were spread over the tool project, the build project and Directory.Build.props. The packages had no authors (NuGet fell back to the package id), no copyright, no tags, no README and no SourceLink repository details. A release meant pushing a tag by hand and choosing its version, and the release-notes tool then wrote the notes and created the GitHub release. Nothing stopped a PR from merging without a label, so the notes and the version bump depended on remembering one.

What

Central Package Management

Directory.Packages.props holds every version. Under CPM the F# SDK no longer adds its implicit FSharp.Core, so the build project references it explicitly at 11.0.101, the version it resolved before. The tool ships with Proc 0.9.1 while the build runs Proc 0.14.0; the build keeps its version through a VersionOverride, so neither resolves anything new.

Package metadata

Directory.Build.props now carries authors, copyright, license, icon, README, repository and release-notes URLs, SourceLink settings (PublishRepositoryUrl, EmbedUntrackedSources, ContinuousIntegrationBuild on CI) and EnablePackageValidation. The project keeps only what differs: title, description and tags. src/assembly-differ/README.md is a short package README written from DiffCommand and the providers: the provider specs, the flags and the exit codes.

No in-package skill: assembly-differ is a .NET tool, and skill discovery from tool packages is untested.

Release from the draft

ci.yml now runs on release: published instead of a tag push, and the release stays in ci.yml because nuget.org's trusted publishing policy names that file. On a release, the aot-pack matrix builds and uploads every RID as a push does, and the build job merges and diffs the packages. It then pushes ghcr.io/nullean/assembly-differ and the packages to nuget.org. After the push it appends the public API report to the release notes, at most once. The image tags still come from the version (containerImageTags), so a release is tagged edge, latest and the version, as a tag push was. The release job no longer needs issues: write.

Drafts, labels and dependency updates

release-drafter.yml keeps the draft current on every push to main, and .github/release-drafter.yml uses the 0.x rule: breaking, feature and enhancement bump the minor version, and everything else is a patch. pr-labels.yml fails a PR that doesn't have exactly one release label, and the label set is already synced. dependabot.yml updates NuGet packages and actions weekly in groups. The reusable workflows are pinned to nullean/.github v1.3.0.

Build, tasks and skills

The release-notes tool and the targets that used it are removed: release notes, GitHub release, pristine check, release and publish. publishcontainers stays. mise run release shows the draft, and mise run release publish publishes it. The releasing, breaking-changes and upgrade-deps repo skills describe the new flow, and the pr skill now requires a release label. AGENTS.md has a Releasing section.

Out of scope: turning validatepackages back on in CI's build job (still commented out since #37), pruning the old v0.x labels, and making release-label a required check.

Verify

mise run ci
unzip -l build/output/assembly-differ.any.*.nupkg | grep -E 'README|png'

Locally on macOS, mise run ci on main and on this branch produces the same packages (assembly-differ, assembly-differ.any, and the osx-arm64 AOT package packed separately), with the same build warnings. Their dependencies are unchanged. Each package gains a README and loses the stray tools/*/nuget-icon.png copy the old Content item put next to the binaries; the root icon stays. The nuspecs only add authors, copyright, tags, readme and the repository branch. zizmor --min-severity medium . reports no findings and actionlint is clean.

🤖 Generated with Claude Code

…r draft

Directory.Packages.props holds every version, including an explicit FSharp.Core for the F# build,
which CPM no longer gets implicitly; the build keeps its newer Proc through a VersionOverride.
Directory.Build.props carries the package metadata (authors, copyright, license, icon, README,
repository and SourceLink settings, package validation), and the tool package gains tags and a
README written from the code.

Publishing the release-drafter draft now releases: ci.yml runs on `release: published`, builds every
RID, pushes the ghcr image and the nuget.org packages as the tag push did, and appends the public API
report to the notes once. The release-notes tool and the targets that wrapped it are gone;
release-drafter, pr-labels and dependabot workflows, the releasing, breaking-changes and upgrade-deps
skills and a `mise run release` task replace them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mpdreamz Mpdreamz added the ci Build and automation (patch) label Nov 11, 2026
@Mpdreamz
Mpdreamz merged commit 5baa38c into main Nov 11, 2026
4 checks passed
@Mpdreamz
Mpdreamz deleted the feature/nullean-release branch November 11, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Build and automation (patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant