Skip to content

Commit

Permalink
deploy storybook to chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
sitek94 committed Nov 26, 2023
1 parent a9de4ed commit 2a81372
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ jobs:
- name: 🏗️ Build
run: pnpm build:docs

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
- name: 🚀 Deploy to Chromatic
uses: chromaui/action@v1
with:
folder: ./apps/docs/build
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: ./apps/docs/build
9 changes: 0 additions & 9 deletions apps/docs/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},

async viteFinal(config, { configType }) {
// Make sure the base path is correct when deploying to GH pages
if (configType === 'PRODUCTION') {
config.base = '/pnpm-monorepo/'
}

return config
},
}

export default config

0 comments on commit 2a81372

Please sign in to comment.