Skip to content

ci(release): harden publish workflow - #281

Merged
thomhurst merged 6 commits into
mainfrom
issue-194-release-hardening
Aug 25, 2026
Merged

ci(release): harden publish workflow#281
thomhurst merged 6 commits into
mainfrom
issue-194-release-hardening

Conversation

@thomhurst

Copy link
Copy Markdown
Owner

Closes #194.

What changed

  • restrict NuGet publishing to manual runs from main behind the nuget environment
  • add a safe-by-default release dry run
  • extract release notes from CHANGELOG.md, push the release tag before packages, and verify it when creating the GitHub release
  • publish .nupkg and .snupkg explicitly without masking duplicates
  • make local packages 0.0.0-local and remove stale next-version
  • verify release workflow invariants plus GitVersion patch/minor/major transitions
  • make package verification enforce local/CI versions while preserving deterministic checks in both contexts

Validation

  • dotnet build Kevlar.slnx -c Release
  • dotnet pack Kevlar.slnx -c Release --no-build
  • ./scripts/Verify-Packages.ps1 -PackagesPath artifacts/package/release -Version 0.0.0-local
  • ./scripts/Verify-ReleaseWorkflow.ps1
  • ./scripts/Verify-Versioning.ps1

Require main and the nuget environment, support safe dry runs, create the release tag before publishing, and derive notes from CHANGELOG.md. Keep local packages visibly local and verify GitVersion transitions.
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5f4172f3-6491-47f4-8435-4381b62193bb


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Prevent GitHub Actions PR metadata from overriding branches inside the temporary versioning repositories.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 23dfcc8240

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef41fb5ca9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/Get-ReleaseNotes.ps1 Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d13f9a8257

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml Outdated
@thomhurst
thomhurst merged commit 49bebc3 into main Aug 25, 2026
10 checks passed
@thomhurst
thomhurst deleted the issue-194-release-hardening branch August 25, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(release): harden the publish job — main-only guard, environment, CHANGELOG notes, tag ordering, local version suffix, GitVersion next-version

1 participant