Releases are managed with changeset, you can find more information on the changeset repository.
Before submitting a PR, create a changeset by running:
pnpm changeset
CLI will prompt questions about the changes you've made and will generate a changeset file for you.
Add a release label to your PR to automatically:
- Bump versions based on changesets
- Commit version updates directly to main
- Publish packages to npm
- Create GitHub releases
All of this happens automatically when the PR is merged - no intermediate PRs needed!
When we run post-merge actions for the browser SDK we publish to NPM
But then we automagically open a PR against the main PostHog repo. We don't update the CDN with the new version until that PR merges. So if it fails you can end up with html snippet users on version N and npm install on version N+1
PostHoggers can join the #alerts-posthog-js channel in slack which gets notified when those PRs fail