Skip to content

: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.

chore(desktop): fix the announcements admin deploy recipe (#117118)

Rafael Audibert6cfb4c30b257
diff --git a/products/desktop/tools/announcements-admin/README.md b/products/desktop/tools/announcements-admin/README.md
index 0f3c8f2f2741..17438bb90c61 100644
--- a/products/desktop/tools/announcements-admin/README.md
+++ b/products/desktop/tools/announcements-admin/README.md
@@ -32,9 +32,15 @@ Set `VITE_POSTHOG_API_KEY`, `VITE_POSTHOG_API_HOST`, and
`VITE_POSTHOG_UI_HOST` in the build environment to send audit events to
PostHog. The tool does not capture announcement content or URLs.
+The site is not deployed by CI.
+Rebuild and republish it from `master` after any change to this tool, `@posthog/shared`, or the `@posthog/brand` catalog version.
+Otherwise the live site keeps the old hoggies and defaults.
+
```bash
-pnpm --filter @posthog/shared build
-pnpm --filter @posthog/announcements-admin build
+# @posthog/shared links @posthog/agent-contracts from outside this workspace,
+# so the recursive build below does not reach it.
+(cd ../../packages/agent && pnpm install --frozen-lockfile && pnpm --filter @posthog/agent-contracts build)
+pnpm --filter "@posthog/announcements-admin..." build
# HostHog defaults the target slug to the zip name, so name it after the slug.
cd tools/announcements-admin/dist && zip -r ../desktop-announcements-admin.zip . && cd -
# publish desktop-announcements-admin.zip (MCP `publish` tool or `hosthog