diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index dab9515e..14f5d2d0 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -21,11 +21,18 @@ jobs: with: fetch-depth: 0 + - run: git fetch origin ${{ github.base_ref }} --depth=1 + + - 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 diff --git a/packages/ui/components/CssResetButton.stories.ts b/packages/ui/components/CssResetButton.stories.ts index 0519449f..5ca9f12e 100644 --- a/packages/ui/components/CssResetButton.stories.ts +++ b/packages/ui/components/CssResetButton.stories.ts @@ -9,7 +9,7 @@ export default { }, argTypes: { default: { - description: 'The default Vue slot', + description: 'The default Vue 3 slot', control: { type: 'text', },