diff --git a/RELEASING.md b/RELEASING.md index 6c1db599..a1a110ed 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -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 @@ -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 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e00b8a9d..92f6b94e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,17 +14,9 @@ importers: src/PostHog: {} - src/PostHog.AI: - dependencies: - PostHog: - specifier: workspace:* - version: link:../PostHog + src/PostHog.AI: {} - src/PostHog.AspNetCore: - dependencies: - PostHog: - specifier: workspace:* - version: link:../PostHog + src/PostHog.AspNetCore: {} packages: diff --git a/src/PostHog.AI/package.json b/src/PostHog.AI/package.json index f2bbe025..bd38b3ad 100644 --- a/src/PostHog.AI/package.json +++ b/src/PostHog.AI/package.json @@ -1,8 +1,5 @@ { "name": "PostHog.AI", "version": "0.1.2", - "private": true, - "dependencies": { - "PostHog": "workspace:*" - } + "private": true } diff --git a/src/PostHog.AspNetCore/package.json b/src/PostHog.AspNetCore/package.json index c95e4207..6a1c761b 100644 --- a/src/PostHog.AspNetCore/package.json +++ b/src/PostHog.AspNetCore/package.json @@ -1,8 +1,5 @@ { "name": "PostHog.AspNetCore", "version": "2.6.2", - "private": true, - "dependencies": { - "PostHog": "workspace:*" - } + "private": true }