Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This repo publishes three NuGet packages independently:
| `PostHog.AspNetCore` | `PostHog.AspNetCore` | `src/PostHog.AspNetCore/package.json` | `src/PostHog.AspNetCore/PostHog.AspNetCore.csproj` |
| `PostHog.AI` | `PostHog.AI` | `src/PostHog.AI/package.json` | `src/PostHog.AI/PostHog.AI.csproj` |

`PostHog.AspNetCore` and `PostHog.AI` depend on `PostHog`. If a changeset bumps `PostHog`, Changesets will also patch-bump the dependent packages so their NuGet dependencies point at the new `PostHog` version.
The package-specific `package.json` files are Changesets metadata only. They intentionally do not declare internal package dependencies, so Changesets releases only the packages selected by changesets. The actual NuGet package dependencies come from the `.csproj` project references when packages are built.

## How to release

Expand Down Expand Up @@ -72,7 +72,8 @@ You can manually trigger the release workflow from the Actions tab with `workflo
- The root `package.json` is tooling-only and is not released.
- The workflow publishes packages sequentially with `PostHog` first, because the other packages depend on it.
- If only `PostHog.AI` changes, only `PostHog.AI` is versioned and published.
- If `PostHog` changes, `PostHog.AspNetCore` and `PostHog.AI` receive patch dependency bumps and are published too.
- If only `PostHog` changes, only `PostHog` is versioned and published, including for major releases.
- Do not add internal `dependencies` entries to the package-specific `package.json` files unless you intentionally want Changesets to couple those packages' releases.

## Troubleshooting

Expand Down
12 changes: 2 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/PostHog.AI/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "PostHog.AI",
"version": "0.1.2",
"private": true,
"dependencies": {
"PostHog": "workspace:*"
}
"private": true
}
5 changes: 1 addition & 4 deletions src/PostHog.AspNetCore/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "PostHog.AspNetCore",
"version": "2.6.2",
"private": true,
"dependencies": {
"PostHog": "workspace:*"
}
"private": true
}
Loading