Skip to content

Commit

Permalink
Allow manual build of all stories on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood authored Jul 12, 2024
1 parent fdb528d commit ab5bf39
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
types:
- opened
- synchronize
workflow_dispatch:
inputs:
onlyChanged:
type: boolean
description: Test all stories on Chromatic
required: false
default: false

concurrency:
group: pull-request-${{ github.ref }}
Expand All @@ -25,10 +32,18 @@ jobs:
- name: Build Storybook
run: npm run build:storybook:tests
- uses: chromaui/action@v1
if: ${{ inputs.onlyChanged == 'true' }}
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: storybook
exitZeroOnChanges: true
onlyChanged: true
externals: |
- (.storybook|src)/**
- uses: chromaui/action@v1
if: ${{ inputs.onlyChanged == 'false' }}
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: storybook
exitZeroOnChanges: true
onlyChanged: false

0 comments on commit ab5bf39

Please sign in to comment.