This repository uses Changesets for version management and an automated GitHub Actions workflow for releases.
When making a change that should be released, add a changeset:
pnpm changesetThis prompts you to select the version bump (patch, minor, or major) and write a short release summary. Commit the generated file in .changeset/ with your pull request.
After review, merge the PR to main. No GitHub release label is required.
A push to main that includes .changeset/*.md changes automatically starts the release workflow. The workflow then:
- Checks for pending changesets
- Notifies the client libraries team in Slack for approval
- Waits for approval from a maintainer via the GitHub
Releaseenvironment - The workflow applies Changesets, syncs
lib/PostHog.phpandcomposer.json, tags the release, and creates a GitHub Release. - Notifies Slack when the release completes or fails
You can also manually trigger the release workflow from the Actions tab with workflow_dispatch. Manual runs still require pending changesets.
Changesets determines the next version from the committed changeset files:
- patch: bug fixes, documentation updates, and internal changes
- minor: backwards-compatible features
- major: breaking changes
If the release workflow reports that no changesets were found, make sure your PR includes at least one releasable .changeset/*.md file.