Skip to content

Commit

Permalink
ci: use chromatic turbosnap (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanyoung authored Aug 30, 2023
1 parent 19f7568 commit a83e33f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

onlyChanged: true
externals: |
- '*.scss'
- 'public/**'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"storybook": "cross-env IS_STORYBOOK=true start-storybook -p 6006 -s ./public",
"build-storybook": "cross-env IS_STORYBOOK=true build-storybook -s ./public --webpack-stats-json",
"deploy-storybook": "rimraf storybook-static && npm run build-storybook -s ./public && echo 'ux.palmetto.com' > 'storybook-static/CNAME' && storybook-to-ghpages --existing-output-dir=storybook-static",
"chromatic": "chromatic --project-token=x8ffq4qv9tq",
"chromatic": "chromatic --project-token=x8ffq4qv9tq --only-changed --externals '*./scss' --externals 'public/**'",
"generate-docs": "yarn doctoc docs/CONTRIBUTING.md",
"lint-js": "cross-env EXTEND_ESLINT=true eslint src",
"lint-js:fix": "cross-env EXTEND_ESLINT=true eslint . --fix",
Expand Down

0 comments on commit a83e33f

Please sign in to comment.