Repository navigation
Manage package versions centrally and release from the release-drafter draft - #47
Merged
Merged
Conversation
…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]>
…lidate them Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.propsholds 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 aVersionOverride, so neither resolves anything new.Package metadata
Directory.Build.propsnow carries authors, copyright, license, icon, README, repository and release-notes URLs, SourceLink settings (PublishRepositoryUrl,EmbedUntrackedSources,ContinuousIntegrationBuildon CI) andEnablePackageValidation. The project keeps only what differs: title, description and tags.src/assembly-differ/README.mdis a short package README written fromDiffCommandand 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.ymlnow runs onrelease: publishedinstead of a tag push, and the release stays inci.ymlbecause nuget.org's trusted publishing policy names that file. On a release, theaot-packmatrix builds and uploads every RID as a push does, and the build job merges and diffs the packages. It then pushesghcr.io/nullean/assembly-differand 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 taggededge,latestand the version, as a tag push was. The release job no longer needsissues: write.Drafts, labels and dependency updates
release-drafter.ymlkeeps the draft current on every push to main, and.github/release-drafter.ymluses the 0.x rule:breaking,featureandenhancementbump the minor version, and everything else is a patch.pr-labels.ymlfails a PR that doesn't have exactly one release label, and the label set is already synced.dependabot.ymlupdates NuGet packages and actions weekly in groups. The reusable workflows are pinned to nullean/.githubv1.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.
publishcontainersstays.mise run releaseshows the draft, andmise run release publishpublishes it. Thereleasing,breaking-changesandupgrade-depsrepo skills describe the new flow, and theprskill now requires a release label.AGENTS.mdhas a Releasing section.Out of scope: turning
validatepackagesback on in CI's build job (still commented out since #37), pruning the oldv0.xlabels, and makingrelease-labela required check.Verify
Locally on macOS,
mise run cionmainand on this branch produces the same packages (assembly-differ,assembly-differ.any, and theosx-arm64AOT package packed separately), with the same build warnings. Their dependencies are unchanged. Each package gains a README and loses the straytools/*/nuget-icon.pngcopy the oldContentitem put next to the binaries; the root icon stays. The nuspecs only addauthors,copyright,tags,readmeand the repository branch.zizmor --min-severity medium .reports no findings andactionlintis clean.🤖 Generated with Claude Code