diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index e66802fe..a951f109 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -1,12 +1,6 @@ name: Chromatic CI -on: - # push: - # branches: - # - main - pull_request: - branches: - - main +on: push jobs: chromatic: @@ -25,24 +19,17 @@ jobs: - id: diff run: echo "::set-output name=changed::$(git diff --name-only origin/${{ github.base_ref }} HEAD --relative ./packages/ui/ | wc -l)" - + - name: Install packages uses: ./.github/actions/install-packages - if: ${{ steps.diff.outputs.changed != '0' }} - - # - name: Chromatic - # uses: chromaui/action@latest - # if: ${{ steps.diff.outputs.changed != '0' }} - # with: - # projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - # workingDir: packages/ui - # exitZeroOnChanges: true - # onlyChanged: true - # env: - # LOG_LEVEL: 'debug' - - - name: Chromatic - if: ${{ steps.diff.outputs.changed != '0' }} - run: | - bun build-storybook - bunx chromatic -d ./packages/ui/storybook-static --storybook-base-dir ./packages/ui --project-token ${{ secrets.CHROMATIC_PROJECT_TOKEN }} --exit-zero-on-changes --only-changed + - name: Run Chromatic + uses: chromaui/action@v1 + with: + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + workingDir: packages/ui + exitZeroOnChanges: true + onlyChanged: true + diagnostics: true + storybookBaseDir: ./packages/ui + env: + LOG_LEVEL: 'debug' diff --git a/packages/ui/.storybook/main.js b/packages/ui/.storybook/main.js index 36f5a124..f5672881 100644 --- a/packages/ui/.storybook/main.js +++ b/packages/ui/.storybook/main.js @@ -25,7 +25,7 @@ module.exports = { return mergeConfig(config, { plugins: configType === 'PRODUCTION' - ? [turbosnap({ rootDir: config.root }), svgLoader({ defaultImport: 'component' })] + ? [turbosnap({ rootDir: process.cwd() }), svgLoader({ defaultImport: 'component' })] : [svgLoader({ defaultImport: 'component' })], resolve: { alias: { diff --git a/packages/ui/components/forms/TextAreaField.stories.ts b/packages/ui/components/forms/TextAreaField.stories.ts index 1fbcb290..85eea3fb 100644 --- a/packages/ui/components/forms/TextAreaField.stories.ts +++ b/packages/ui/components/forms/TextAreaField.stories.ts @@ -59,9 +59,8 @@ export const vModel: Story = { return { args,detail } }, template: `
親コンポーネント側のv-model値: {{ detail }}
+v-model value: {{ detail }}