Skip to content

Tweak chromatic CI logic#15994

Open
Jakeii wants to merge 4 commits into
mainfrom
jlk/tweak-chromatic-ci-logic
Open

Tweak chromatic CI logic#15994
Jakeii wants to merge 4 commits into
mainfrom
jlk/tweak-chromatic-ci-logic

Conversation

@Jakeii
Copy link
Copy Markdown
Member

@Jakeii Jakeii commented May 28, 2026

What does this change?

Added an if to the chromatic step so now chromatic should run with these conditions:

  • If on push to main, always run the Chromatic step.
  • If on a PR and the run_chromatic label is present, run the Chromatic step.
  • If on a PR and no relevant files have been touched, run the Chromatic step with skip: true, so the check appears as skipped instead of absent.

Also have added pnp-workspace.yaml and the workflows themselves to the paths that require chromatic to run.

Why?

Currently the chromatic check is skipping when it should not be, because it skips when the run_chromatic label is present.

See the second to last commit checks with no relevant files changes - skips successfully, then final commit where I added the workflows to the paths that require chromatic and it requires chromatic as expected.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

@Jakeii Jakeii added maintenance Departmental tracking: maintenance work, not a fix or a feature run_chromatic Runs chromatic when label is applied labels May 28, 2026
@Jakeii Jakeii marked this pull request as ready for review May 28, 2026 12:45
@Jakeii Jakeii requested a review from a team as a code owner May 28, 2026 12:45
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label May 28, 2026
@Jakeii Jakeii added this to the Health milestone May 28, 2026
@Jakeii Jakeii linked an issue May 28, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigation: Chromatic skip logic

1 participant