Skip to content

Fix failing "FastStore" CI job: skip Chromatic step when token secret is missing#3361

Open
dependabot[bot] wants to merge 2 commits into
devfrom
dependabot/github_actions/pnpm/action-setup-6
Open

Fix failing "FastStore" CI job: skip Chromatic step when token secret is missing#3361
dependabot[bot] wants to merge 2 commits into
devfrom
dependabot/github_actions/pnpm/action-setup-6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 1, 2026

Copy link
Copy Markdown
Contributor

The "FastStore" CI job was failing because the CHROMATIC_PROJECT_TOKEN secret is not available in Dependabot PR contexts. When the token is missing, the Chromatic action exits with a non-zero code ("Missing project token"), causing the entire CI job to fail.

Root Cause

The "Publish to Chromatic" step in .github/workflows/ci.yml runs unconditionally, but the CHROMATIC_PROJECT_TOKEN secret is not accessible in Dependabot or fork PRs, causing Chromatic CLI to exit with an error.

Fix

Added an if: ${{ secrets.CHROMATIC_PROJECT_TOKEN != '' }} condition to the "Publish to Chromatic" step so it is gracefully skipped when the secret is not available, while still running normally on PRs that have access to the secret.

Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 4 to 6.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](pnpm/action-setup@v4...v6)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jun 1, 2026
@dependabot dependabot Bot requested a review from a team as a code owner June 1, 2026 09:38
@dependabot dependabot Bot requested review from emersonlaurentino and hellofanny and removed request for a team June 1, 2026 09:38
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jun 1, 2026
@codesandbox-ci

codesandbox-ci Bot commented Jun 1, 2026

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@pkg-pr-new

pkg-pr-new Bot commented Jun 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

@faststore/api

yarn add https://pkg.pr.new/vtex/faststore/@faststore/api@1058a60.tgz

@faststore/cli

yarn add https://pkg.pr.new/vtex/faststore/@faststore/cli@1058a60.tgz

@faststore/components

yarn add https://pkg.pr.new/vtex/faststore/@faststore/components@1058a60.tgz

@faststore/core

yarn add https://pkg.pr.new/vtex/faststore/@faststore/core@1058a60.tgz

@faststore/diagnostics

yarn add https://pkg.pr.new/vtex/faststore/@faststore/diagnostics@1058a60.tgz

@faststore/lighthouse

yarn add https://pkg.pr.new/vtex/faststore/@faststore/lighthouse@1058a60.tgz

@faststore/sdk

yarn add https://pkg.pr.new/vtex/faststore/@faststore/sdk@1058a60.tgz

@faststore/ui

yarn add https://pkg.pr.new/vtex/faststore/@faststore/ui@1058a60.tgz

commit: 1058a60

Copilot AI changed the title chore(deps): bump pnpm/action-setup from 4 to 6 Fix failing "FastStore" CI job: skip Chromatic step when token secret is missing Jun 1, 2026
@sonar-workflows

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant