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
22 changes: 1 addition & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,4 @@ Specifically, the [Ruby integration](https://posthog.com/docs/integrations/ruby-
1. Run `bin/test` (this ends up calling `bundle exec rspec`)
2. An example of running specific tests: `bin/test spec/posthog/client_spec.rb:26`

## How to release

Both `posthog-ruby` and `posthog-rails` are released together with the same version number.

1. Create a PR that:
- Updates `lib/posthog/version.rb` with the new version
- Updates `CHANGELOG.md` with the changes and current date

2. Add the `release` label to the PR

3. Merge the PR to `main`

4. The release workflow will:
- Notify the Client Libraries team in Slack
- Wait for approval via the GitHub `Release` environment
- Publish both gems to RubyGems (via trusted publishing)
- Create and push a git tag

5. Approve the release in GitHub when prompted

The workflow handles publishing both `posthog-ruby` and `posthog-rails` in the correct order (since `posthog-rails` depends on `posthog-ruby`).
For release instructions, see [RELEASING.md](RELEASING.md).
21 changes: 21 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Releasing

Both `posthog-ruby` and `posthog-rails` are released together with the same version number.

1. Create a PR that:
- Updates `lib/posthog/version.rb` with the new version
- Updates `CHANGELOG.md` with the changes and current date

2. Add the `release` label to the PR

3. Merge the PR to `main`

4. The release workflow will:
- Notify the Client Libraries team in Slack
- Wait for approval via the GitHub `Release` environment
- Publish both gems to RubyGems (via trusted publishing)
- Create and push a git tag

5. Approve the release in GitHub when prompted

The workflow handles publishing both `posthog-ruby` and `posthog-rails` in the correct order (since `posthog-rails` depends on `posthog-ruby`).
Loading