Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use current working directory as default value for storybookBaseDir #976

Merged
merged 2 commits into from May 8, 2024

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented May 8, 2024

getDependentStoryFiles has always used the current working directory as base directory when storybookBaseDir isn't set, making it zero-config in most cases. checkStorybookBaseDir wasn't behaving in the same way, causing it to throw an error when it shouldn't. This update fixes this inconsistency by using the current working directory relative to the repository root as the default value for storybookBaseDir.

📦 Published PR as canary version: 11.3.3--canary.976.9004196764.0

✨ Test out this PR locally via:

npm install chromatic@11.3.3--canary.976.9004196764.0
# or 
yarn add chromatic@11.3.3--canary.976.9004196764.0

Copy link

codacy-production bot commented May 8, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for da800dd1 100.00% (target: 80.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (da800dd) Report Missing Report Missing Report Missing
Head commit (3d44093) 8452 6650 78.68%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#976) 4 4 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy will stop sending the deprecated coverage status from June 5th, 2024. Learn more

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

@ghengeveld ghengeveld added release Auto: Create a `latest` release when merged patch Auto: Increment the patch version when merged labels May 8, 2024
@ghengeveld ghengeveld requested review from andrewortwein and thafryer and removed request for andrewortwein May 8, 2024 09:51
@ghengeveld ghengeveld linked an issue May 8, 2024 that may be closed by this pull request
Copy link
Contributor

@andrewortwein andrewortwein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗂️👍🏻

@ghengeveld ghengeveld added this pull request to the merge queue May 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 8, 2024
@ghengeveld ghengeveld added this pull request to the merge queue May 8, 2024
Merged via the queue into main with commit a3744e6 May 8, 2024
23 checks passed
@ghengeveld ghengeveld deleted the fix-storybook-base-dir-check-2 branch May 8, 2024 15:07
@ghengeveld
Copy link
Member Author

🚀 PR was released in v11.3.2 🚀

@ghengeveld ghengeveld added the released Verdict: This issue/pull request has been released label May 8, 2024
@Botffy
Copy link

Botffy commented May 9, 2024

That's nice, I'm truly grateful for the fix, but since the Github action still has the same version ("chromaui/action@v1"), it broke our build that we hacked to work around the issue. Is there a possibility to version the Github action in the future to avoid such issues?

Edit: ah I see, I can actually get earlier versions at https://github.com/chromaui/action/tags , and it's just the "v1" that changes constantly, good to know. I couldn't get the new version to work with our setup, btw, but I guess that should go to a different issue.

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 released Verdict: This issue/pull request has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

monorepo build fails due to storybookBaseDir check in v11.3.1
3 participants