: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
chore(ci): send the storybook story index to visual review (#100075)
Julian Bez40c3608ab94c
diff --git a/.github/workflows/ci-storybook.yml b/.github/workflows/ci-storybook.ymlindex cddba260801d..30d6e986a6e3 100644--- a/.github/workflows/ci-storybook.yml+++ b/.github/workflows/ci-storybook.yml@@ -669,11 +669,21 @@ jobs:env:VR_TOKEN: ${{ secrets.VR_API_TOKEN }}run: |- node vr-cli/products/visual_review/cli/dist/cli/src/index.js run upload \+ VR_CLI=vr-cli/products/visual_review/cli/dist/cli/src/index.js+ # This container step runs under sh, so the optional flags go through `set --`+ # rather than a bash array.+ set -- \--run-id "${{ needs.vr-setup.outputs.run_id }}" \--dir frontend/__snapshots__/ \--baseline frontend/snapshots.yml \--token "$VR_TOKEN"+ # The story index lets Visual Review name each snapshot's owning team. The CLI is+ # built from the base ref, so a merge-queue run can pair this workflow with a CLI+ # that predates the flag. Pass it only when the CLI knows it.+ if node "$VR_CLI" run upload --help | grep -q -- '--storybook-index'; then+ set -- "$@" --storybook-index common/storybook/dist/index.json --storybook-root common/storybook+ fi+ node "$VR_CLI" run upload "$@"# Saves the container version of the entry from one shard, master only. Runs# after the upload so packing never delays a snapshot. !cancelled() because the