git-workflow

star 0

Squad.SDK.NET branch model: dev -> preview -> main with changesets

snickler By snickler schedule Updated 5/15/2026

name: "git-workflow" description: "Squad.SDK.NET branch model: dev -> preview -> main with changesets" domain: "version-control" confidence: "high" source: "team-decision"

Context

Squad.SDK.NET uses three long-lived branches:

Branch Purpose Notes
dev Integration branch for feature work PRs target dev; releaseable SDK changes add .changeset files
preview Release candidate branch Promotion from dev applies changesets into csproj version + changelog
main Stable released branch Pushes trigger automatic tagging and NuGet/GitHub release creation

Workflow for Issue Work

  1. Branch from dev.
  2. Do the work and add tests.
  3. If you changed releaseable SDK behavior under src/Squad.SDK.NET/, add a .changeset/*.md file.
  4. Open the PR against dev.
  5. After merge, maintainers promote dev -> preview with promote.yml.
  6. After preview validation passes, maintainers promote preview -> main.

Changeset Rule

Releaseable SDK changes need a changeset:

---
"Squad.SDK.NET": minor
---

Add preview validation for release candidates.

Use:

  • patch for backwards-compatible fixes
  • minor for backwards-compatible features
  • major for breaking API changes

Promotion Pipeline

  • dev -> preview: merge dev, apply changesets, bump csproj version, update changelog, clear applied changesets
  • preview -> main: merge validated preview into main
  • main: creates v<Version> automatically and publishes the stable release
  • main -> dev: the release commit is synced back into dev so new changesets start from the released baseline

Anti-Patterns

  • ❌ Branching from main for normal feature work
  • ❌ PRs targeting main directly
  • ❌ Pushing manual release tags
  • ❌ Skipping .changeset files for releaseable SDK changes
  • ❌ Leaving pending changesets on preview or main
Install via CLI
npx skills add https://github.com/snickler/squad-sdk-net --skill git-workflow
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator