Skip to content

Commit

Permalink
chore: 🧼 add chromatic to storybord build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashley committed Nov 16, 2023
1 parent a303561 commit 4c6d823
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ jobs:
personal_token: ${{ steps.gh_app.outputs.token }}
publish_dir: ./dist/storybook/wizarr-frontend
cname: storybook.wizarr.dev

- name: Deploy Storybook to Chromatic
run: npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --exit-zero-on-changes --storybook-build-dir ./dist/storybook/wizarr-frontend
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
5 changes: 5 additions & 0 deletions apps/wizarr-frontend/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const config: StorybookConfig = {
autodocs: "tag",
defaultName: "Documentation",
},
core: {
disableTelemetry: true,
disableWhatsNewNotifications: true,
enableCrashReports: false,
},
};

export default config;
Expand Down
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
"@wizarrrr/semantic-release-discord": "^1.0.0",
"@wizarrrr/semantic-release-sentry-releases": "^1.0.0",
"autoprefixer": "^10.4.15",
"chromatic": "^9.0.0",
"cypress": "^13.0.0",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
Expand Down

0 comments on commit 4c6d823

Please sign in to comment.