To update Chromatic in GitHub Actions, change the version tag on the action’s uses line—for example, chromaui/action@latest to chromaui/action@vX or a fixed chromaui/[email protected]. The action typically upgrades the CLI automatically; the tag determines how updates are selected. If your workflow runs npx chromatic directly instead, install Chromatic as a project development dependency to control its version through your package manifest and lockfile.
Update the version tag in the GitHub Action
Open the workflow file that runs Chromatic, usually under .github/workflows/, and find the step that uses chromaui/action. Change only the tag after the @ to choose an update policy. Chromatic’s GitHub Actions documentation says the action typically auto-upgrades the CLI.
| # | Preview | Product | Price | |
|---|---|---|---|---|
| 1 |
|
Can SNS Be Fully Automated by AI: How Far Can OpenAI Codex and ChatGPT Run note X YouTube Instagram... | $4.27 | Buy on Amazon |
- name: Run Chromatic
uses: chromaui/action@vX
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Replace vX with the major version you intend to follow. To pin a specific release, use a complete tag such as chromaui/[email protected]. Chromatic’s examples include v10 and v10.0.0 to illustrate tag formats; they are not a recommendation for the latest release.
Choose how updates should reach CI
| Tag pattern | Update behavior | Useful when |
|---|---|---|
@latest |
Follows all new updates. | You want new updates automatically. |
@vX |
Receives features and bug fixes within the chosen major version while avoiding breaking changes from a new major version. | You want updates within a major line without automatically crossing to another major. |
@vX.Y.Z |
Stays on the specific version until you deliberately change the workflow tag. | You want version changes to happen through explicit workflow edits. |
A fixed tag reduces surprise from an automatic version change, but it also means someone must revisit it so CI does not remain on an old release unnoticed.
Free tools Windows power users keep installed
One-click scans. No signup required.
#1 Best Overall
Check the surrounding workflow before committing
Changing the action tag does not require restructuring the workflow. Check that the existing setup still matches the project and Chromatic’s documented setup:
- Checkout: Chromatic’s GitHub Actions example uses
actions/checkoutwithfetch-depth: 0. - Node and dependencies: Keep the project’s existing Node version and package-manager installation process consistent with its lockfile.
- Project token: Store the token as a GitHub Actions repository secret and reference it as
${{ secrets.CHROMATIC_PROJECT_TOKEN }}. Do not put the token value in committed YAML. - Trigger: Chromatic recommends running the step on
push. Its documentation warns that apull_requesttrigger can, in some circumstances, cause lost baselines or an unexpected baseline frommain. Treat trigger changes separately from changing the version tag.
These setup details and the trigger caveat are covered in Chromatic’s GitHub Actions guide.
If the workflow runs npx chromatic directly
This is a different version-control path from chromaui/action. If the project does not have chromatic installed as a dependency, npx chromatic downloads and runs the latest version. To make the CLI version follow the project’s dependency manifest and lockfile, add it as a development dependency using the project’s package manager. Chromatic lists these commands in its CLI documentation:
npm install chromatic --save-devyarn add --dev chromaticpnpm add --save-dev chromatic
Commit the resulting manifest and lockfile changes, then keep using the project’s normal dependency-install step in CI. Chromatic recommends installing the package when pairing the CLI with Vitest, Playwright, or Cypress so it stays in sync with the corresponding Chromatic test package. That recommendation is not a requirement for every basic Storybook workflow.
Verify the change
- Edit the
usestag in the Chromatic workflow, or add the CLI as a development dependency if the workflow invokes it directly. - Preserve the repository secret reference and the workflow’s existing checkout, Node, and dependency setup.
- Commit the workflow or dependency changes and run the workflow using its normal trigger.
- Review the GitHub Actions log for the Chromatic step and confirm it completes. If it fails, use the error and setup checks below rather than changing the trigger and version policy at the same time.
Troubleshooting
The CLI version did not change as expected
Check which mechanism the workflow uses. For chromaui/action, the tag on the uses line selects the policy. For direct npx chromatic without a project dependency, npx runs the latest version; install Chromatic as a development dependency if the project should control the version through its lockfile.
The action cannot authenticate
Confirm that the repository has a GitHub Actions secret named CHROMATIC_PROJECT_TOKEN and that the workflow references it as ${{ secrets.CHROMATIC_PROJECT_TOKEN }}. Keep the token itself out of the YAML file and commit history.
The workflow has baseline problems
Review the trigger separately from the version update. Chromatic recommends push; its GitHub Actions documentation notes that pull_request can produce unexpected baseline behavior in some circumstances. See Chromatic’s trigger guidance.
The workflow fails during checkout or dependency setup
Compare the workflow with the project’s normal CI setup: ensure checkout fetches full history with fetch-depth: 0 where needed, Node matches the project, and dependencies are installed with the package manager and lockfile the repository actually uses. Updating the action tag alone does not replace those setup steps.
Or skip the browser setup
For website screenshots rather than Chromatic visual testing, ScreenshotNeo offers a screenshot API and MCP server. One GET request can return a screenshot or PDF; its documentation is at screenshotneo.com/docs.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Cookie banners, popups, and chat widgets are removed before capture; bot checks, blank pages, and failed loads are never billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000. Sign up for free.
Frequently Asked Questions
Can I use a full version number for the Chromatic GitHub Action?
Yes. Use a tag in the form chromaui/[email protected] to pin a specific version.
Does changing the Chromatic action tag require changing the workflow trigger?
No. The version tag and trigger are separate workflow choices.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




