Skip to content

ci(docs): redeploy docs when figma/preview or web/Pulsar change#72

Merged
piaskowyk merged 2 commits into
mainfrom
ci/deploy-docs-figma-preview-paths
Jun 11, 2026
Merged

ci(docs): redeploy docs when figma/preview or web/Pulsar change#72
piaskowyk merged 2 commits into
mainfrom
ci/deploy-docs-figma-preview-paths

Conversation

@piaskowyk

Copy link
Copy Markdown
Member

Problem

The Deploy Docs workflow only triggers on pushes touching docs/**:

on:
  push:
    branches: [main]
    paths:
      - 'docs/**'

But the docs build's prebuild step (docs/scripts/build-figma-preview.mjs) bundles the standalone figma/preview app into the <iframe srcdoc> embed, and that app depends on web/Pulsar's pulsar-haptics build. So a change to the embed source that doesn't also touch docs/** merges to main without ever redeploying the docs — the live site keeps serving a stale embed.

This just bit us: #70 (the figma-preview host-bridge fix) changed only figma/preview/src/**, merged cleanly, but never triggered a docs deploy, so production kept serving the old, broken embed.

Fix

Add the embed-source paths (and the workflow file itself) to the push.paths filter so embed-affecting changes auto-deploy:

    paths:
      - 'docs/**'
      - 'figma/preview/**'
      - 'web/Pulsar/**'
      - '.github/workflows/deploy-docs.yml'

workflow_dispatch remains for manual runs.

🤖 Generated with Claude Code

piaskowyk and others added 2 commits June 11, 2026 13:50
The docs build bundles the standalone figma/preview app into the
<iframe srcdoc> embed (via the prebuild step), and that app depends on
web/Pulsar's pulsar-haptics build. But the deploy workflow only triggered
on `docs/**`, so a change to the embed source (e.g. #70, which touched
only figma/preview/src) merged to main without ever redeploying the docs
— the live site kept serving the stale embed.

Add figma/preview/**, web/Pulsar/** and the workflow file itself to the
push path filter so embed-affecting changes deploy automatically.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Removed comments about dependencies for docs deployment.
@piaskowyk piaskowyk merged commit 322f60d into main Jun 11, 2026
@piaskowyk piaskowyk deleted the ci/deploy-docs-figma-preview-paths branch June 11, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant