Skip to content

Commit

Permalink
chore: add turbosnap setting to github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahgm committed Jan 20, 2023
1 parent 44379e8 commit 1ff70ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
buildScriptName: build:storybook
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
onlyChanged: true
# Option to prevent the workflow from failing (https://www.chromatic.com/docs/github-actions#command-exit-code-for-required-checks)
exitZeroOnChanges: true
exitOnceUploaded: true
Expand Down
2 changes: 1 addition & 1 deletion config/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"start": "start-storybook -p 1337 -c .",
"build": "build-storybook --disable-telemetry -c . -o ../../storybook-static",
"test": "start-storybook --smoke-test --ci -c .",
"chromatic": "pnpm dlx chromatic --force-rebuild --exit-zero-on-changes",
"chromatic": "pnpm dlx chromatic --force-rebuild --only-changed --exit-zero-on-changes",
"ci": "pnpm dlx chromatic"
}
}
2 changes: 1 addition & 1 deletion packages/components/src/Menu/Menu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const DotMenu: ComponentStory<typeof Menu> = args => (
<Menu>
<Menu.Item key="edit">Edit</Menu.Item>
<Menu.Item key="duplicate">Duplicate</Menu.Item>
<Menu.Item key="delete">Delete</Menu.Item>
<Menu.Item key="delete">Deletee</Menu.Item>
</Menu>
</Menu.Trigger>
);

0 comments on commit 1ff70ce

Please sign in to comment.