:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(cli): correct the release account and the two-merge flow (#105113)
Hugues Pouillot1a6db7fb3686
diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.ymlindex d4251ee9b8c7..94cc381c28f5 100644--- a/.github/workflows/release-cli.yml+++ b/.github/workflows/release-cli.yml@@ -1007,8 +1007,8 @@ jobs:uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1with:role-to-assume: ${{ vars.AWS_CLI_RELEASES_ROLE_ARN }}- # The bucket lives in shared-services us-east-1, and CloudFront- # only reads certificates from that region anyway.+ # The bucket and its distribution live in the prod-us account,+ # us-east-1, next to the other release mirrors there.aws-region: us-east-1mask-aws-account-id: trueunset-current-credentials: truediff --git a/cli/.sampo/README.md b/cli/.sampo/README.mdindex dcee6ceb4fa6..f608f6515597 100644--- a/cli/.sampo/README.md+++ b/cli/.sampo/README.md@@ -9,10 +9,11 @@ sampo add --package cargo/posthog-cli --bump patch --message "Describe the CLI c```The release workflow consumes files in `cli/.sampo/changesets/`, updates-`cli/Cargo.toml`, `cli/Cargo.lock`, and `cli/CHANGELOG.md`, then commits the-release bump to `master`. The same approved `Release CLI` workflow runs-cargo-dist against that release commit, creates the `posthog-cli/vX.Y.Z`-GitHub release, and publishes the npm package.+`cli/Cargo.toml`, `cli/Cargo.lock`, and `cli/CHANGELOG.md`, then opens a+release pull request carrying that bump.+Merging that pull request runs the same approved `Release CLI` workflow+against the release commit, which creates the `posthog-cli/vX.Y.Z` GitHub+release and publishes the npm package.Do not run `sampo publish` or push `posthog-cli/vX.Y.Z` tags manually for`posthog-cli`; cargo-dist publishing is owned by `Release CLI`.diff --git a/cli/RELEASING.md b/cli/RELEASING.mdindex 93b4dc6dec42..db55030a3157 100644--- a/cli/RELEASING.md+++ b/cli/RELEASING.md@@ -19,10 +19,16 @@ After the pull request merges to `master`, the `Release CLI` workflow:3. Updates to the latest `master` and stops successfully if no changesets remain4. Runs `sampo release` from `./cli`5. Updates `cli/Cargo.toml`, `cli/Cargo.lock`, and `cli/CHANGELOG.md`-6. Commits the release bump to `master`+6. Opens a release pull request carrying that bump++Merging the release pull request runs the workflow a second time, which then:+7. Runs cargo-dist against the release bump commit8. Publishes the artifacts to the release bucket, then creates the `posthog-cli/vX.Y.Z` GitHub release, refreshes `posthog-cli-latest` for stable releases, and publishes the npm package+A release therefore takes two merges: the changeset, then the release pull request.+The bump arrives as a pull request rather than a direct commit because every change to `master` goes through the merge queue.+Do not run `sampo publish`; cargo-dist owns publishing for `posthog-cli`.### The release bucket