Skip to content

Release by publishing the release-drafter draft instead of pushing a tag - #38

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

Mpdreamz merged 3 commits into
mainfrom
feature/nullean-release-flow

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

proc now releases when its release-drafter draft is published (on github.com, from a phone, or with mise run release publish), instead of when a tag is pushed. Each pull request carries exactly one label, and that label decides the next version.

Prompt summary: Normalize how every nullean repository releases. release-drafter drafts the notes from required PR labels so the next version never has to be guessed. In 0.x a breaking change bumps the minor version, and 1.0 is always a manual decision. Releasing means promoting the draft, which is easy from a phone. proc is the pilot.

Why

A release meant pushing a tag by hand and choosing its version. The release-notes tool then guessed categories from labels and created a v0.x label for each release (about 30 so far). Nothing stopped a PR from merging without a label, so the notes and the version bump depended on remembering one.

What

Release from the draft

ci.yml now also runs on release: published, and its release job calls the shared release workflow in nullean/.github. It stays in ci.yml because nuget.org's trusted publishing policies for Proc and Proc.Fs name that file. That workflow checks out the new tag, runs mise run pack, and checks every package carries the tag's version. It then pushes to nuget.org with trusted publishing and appends the breaking-changes-*.md API report to the release notes. The tag trigger and the old tag release job are gone. The canary push to GitHub Packages stays.

Drafts and labels

release-drafter.yml keeps the draft current on every push to main. .github/release-drafter.yml maps labels to versions: breaking, feature and enhancement bump the minor version (the 0.x rule), and everything else is a patch. pr-labels.yml fails a PR that doesn't have exactly one release label. The label set is already synced to this repo.

Dependency updates

dependabot.yml updates NuGet packages and actions weekly in groups, with a 7-day cooldown and the dependencies label, so its PRs pass the label check.

Build and skills

The release-notes tool and the targets that used it are removed: release notes, GitHub release, pristine check, release and publish. The release, breaking-changes and upgrade-deps repo skills describe the new flow, and the pr skill now requires a release label.

Out of scope: pruning the old v0.x labels. They are still attached to past PRs and issues, so deleting them is a separate decision. Making release-label a required check in branch protection is also left for later.

Verify

mise run pack                 # what the release workflow runs
mise run release              # once merged: shows the draft and the version it resolved

🤖 Generated with Claude Code

release-drafter drafts the next release from merged PR labels, and publishing that draft runs
the shared release workflow: it packs at the new tag's version, pushes to nuget.org with
trusted publishing, and appends the public API changes to the notes. Pushing a tag no longer
releases. Every PR needs exactly one release label, and dependabot keeps NuGet packages and
actions current under the `dependencies` label.

The release-notes tool and the build targets that wrapped it (release notes, GitHub release,
pristine-checkout guard, release and publish) go, along with the repo skills that describe the
new flow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mpdreamz Mpdreamz added the ci Build and automation (patch) label Nov 11, 2026
Visual Studio's standard .gitignore ignores any release/ directory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mpdreamz
Mpdreamz changed the base branch from feature/nullean-packaging to main November 11, 2026 13:02
…lishing names

The policies for Proc and Proc.Fs name ci.yml, so the release job lives there, on
release: published, and calls the shared release workflow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mpdreamz
Mpdreamz merged commit 11cd6cd into main Nov 11, 2026
6 checks passed
Mpdreamz added a commit to nullean/scoped-filesystem that referenced this pull request Nov 11, 2026
…tag (#19)

scoped-filesystem now releases when its release-drafter draft is
published (on github.com, from a phone, or with `mise run release
publish`), instead of when a tag is pushed. Each pull request carries
exactly one label, and that label decides the next version.

**Prompt summary:** Normalize how every nullean repository releases.
release-drafter drafts the notes from required PR labels so the next
version never has to be guessed. In 0.x a breaking change bumps the
minor version, and 1.0 is always a manual decision. Releasing means
promoting the draft. This is step 3 of the rollout, as on
nullean/proc#38.

## Why
A release meant pushing a tag by hand and choosing its version. The
release-notes tool then guessed categories from labels and created a
`v0.x` label for each release. Nothing stopped a PR from merging without
a label, so the notes and the version bump depended on remembering one.

## What

#### Release from the draft
`ci.yml` now also runs on `release: published`. Its `release` job calls
the shared release workflow in nullean/.github (`v1.3.0`, pinned by SHA)
with `packages-path: build/output`. It stays in `ci.yml` because
nuget.org's trusted publishing policy for Nullean.ScopedFileSystem names
that file. That workflow:
- checks out the new tag and runs `mise run pack`;
- checks every package carries the tag's version;
- pushes to nuget.org with trusted publishing;
- appends the `breaking-changes-*.md` API report to the release notes.

The tag trigger and the old tag release job are gone. The canary push to
GitHub Packages stays.

#### Drafts and labels
`release-drafter.yml` keeps the draft current on every push to main.
`.github/release-drafter.yml` maps labels to versions: `breaking`,
`feature` and `enhancement` bump the minor version (the 0.x rule), and
everything else is a patch. `pr-labels.yml` fails a PR that doesn't have
exactly one release label. The label set is synced to this repo.

#### Dependency updates
`dependabot.yml` updates NuGet packages and actions weekly in groups,
with a 7-day cooldown and the `dependencies` label, so its PRs pass the
label check.

#### Build and skills
The release-notes tool and the targets that used it are removed: release
notes, GitHub release, pristine check, release and publish. `mise run
release` shows the draft. The `releasing`, `breaking-changes` and
`upgrade-deps` repo skills describe the new flow, and the `pr` skill now
requires a release label. `upgrade-deps` points at `dotnet-tools.json`
in the root, where this repo keeps it.

**Out of scope:** pruning the old `v0.x` labels, which are still
attached to past PRs. Making `release-label` a required check in branch
protection is also left for later.

## Verify
```bash
mise run pack                 # what the release workflow runs
mise run release              # once merged: shows the draft and the version it resolved
```
Locally, `mise run ci` passes the same 114 of 114 tests as `main`. `mise
run pack` succeeds. zizmor and actionlint are clean.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
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