Skip to content

Delay check of build-storybook script validation#1327

Open
jmhobbs wants to merge 2 commits into
mainfrom
jmhobbs/cap-4395-delay-check-of-build-storybook-script-name
Open

Delay check of build-storybook script validation#1327
jmhobbs wants to merge 2 commits into
mainfrom
jmhobbs/cap-4395-delay-check-of-build-storybook-script-name

Conversation

@jmhobbs
Copy link
Copy Markdown
Contributor

@jmhobbs jmhobbs commented May 11, 2026

The build-storybook script requirement does not apply to React Native only projects, so we need to work around that. This adds a pre-flight request to get app details and see if it is a React Native app.

The request was added to auth to avoid another task in the UI, and validation has moved from getOptions to storybookInfo to delay it until the proper context is available, but still run it before announceBuild

📦 Published PR as canary version: 16.10.1--canary.1327.25700929811.1

✨ Test out this PR locally via:

npm install chromatic@16.10.1--canary.1327.25700929811.1
# or 
yarn add chromatic@16.10.1--canary.1327.25700929811.1

@jmhobbs jmhobbs requested a review from a team May 11, 2026 22:03
@jmhobbs jmhobbs self-assigned this May 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 11, 2026

📦 Package Size: 7100 KB
✅ Compared to main: 0 KB 9ed03ec (7100 KB)

jmhobbs added 2 commits May 11, 2026 17:24
We need to have more information available for option validation before
we announce the build. Slipped into the auth task because we do
not want to inject another task for this.
Since this is specific to web Storybook builds, it is being moved out of
getOptions and into storybookInfo. It is gated by ctx.isReactNativeApp
which we get in the auth task in the previous commit.
@jmhobbs jmhobbs force-pushed the jmhobbs/cap-4395-delay-check-of-build-storybook-script-name branch from c18f6c1 to 0229072 Compare May 11, 2026 22:25
@jmhobbs jmhobbs added release Auto: Create a `latest` release when merged patch Auto: Increment the patch version when merged labels May 11, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.87%. Comparing base (9ed03ec) to head (0229072).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1327      +/-   ##
==========================================
+ Coverage   80.74%   80.87%   +0.12%     
==========================================
  Files         214      214              
  Lines        4197     4214      +17     
  Branches     1197     1207      +10     
==========================================
+ Hits         3389     3408      +19     
+ Misses        694      692       -2     
  Partials      114      114              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

patch Auto: Increment the patch version when merged release Auto: Create a `latest` release when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant