Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,41 @@ name: Chromatic
# visual regressions are caught before merge. The first build was seeded
# locally; subsequent builds run here with CHROMATIC_PROJECT_TOKEN from
# repo secrets.
#
# Snapshot quota lives under a budget (free tier 5000 / OSS tier 7500 per
# month). A `paths-ignore` filter keeps Chromatic from spending snapshots
# on changes that cannot affect the visual output (docs, changelogs,
# changesets, dependabot config, the auto-merge workflow). None of these
# touch the published bundle or any story.
#
# Dependabot PRs continue to run Chromatic on purpose: a future PR is
# expected to re-enable TurboSnap with a content-hash fingerprint of
# `pharos-tokens`, after which a Dependabot bump that does not change the
# fingerprint will skip every snapshot anyway, and the rare bump that
# does change it (typically a pharos-tokens release) still wants a
# visual check.

on:
push:
branches: [main]
paths-ignore:
- '**/*.md'
- '**/*.mdx'
- '.changeset/**'
- 'CHANGELOG.md'
- 'LICENSE'
- '.github/dependabot.yml'
- '.github/workflows/dependabot-auto-merge.yml'
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
- '**/*.mdx'
- '.changeset/**'
- 'CHANGELOG.md'
- 'LICENSE'
- '.github/dependabot.yml'
- '.github/workflows/dependabot-auto-merge.yml'

permissions:
contents: read
Expand Down