The GitHub secret is POSTHOG_API_KEY but Next.js requires the NEXT_PUBLIC_ prefix to expose it to the client bundle.
Adapted from kilocode repo's markdoc-build.yml: - pnpm → bun (using shared setup-bun action) - Path-filtered to only run on packages/kilo-docs changes - Targets dev branch - Includes both build and test steps