Skip to content

build(dev-deps): bump chromatic from 6.19.9 to 11.10.4 #3292

build(dev-deps): bump chromatic from 6.19.9 to 11.10.4

build(dev-deps): bump chromatic from 6.19.9 to 11.10.4 #3292

Workflow file for this run

name: Preview
on:
push:
branches: ['main']
pull_request:
branches: ['main']
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
outputs:
# https://www.chromatic.com/docs/github-actions#outputs
storybookUrl: ${{ steps.publish.outputs.storybookUrl }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 100
- name: Setup
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
uses: ./.github/actions/install
- name: Publish
id: publish
uses: chromaui/action@v11
with:
buildScriptName: 'build:storybook'
externals: src/assets/**
onlyChanged: true
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
skip: 'dependabot/**'
token: ${{ secrets.GH_PAT }}
zip: true
update_pull_request:
name: Update Pull Request
runs-on: ubuntu-latest
needs: publish
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') && github.event_name == 'pull_request'}}
steps:
- name: Update Pull Request Preview URL
uses: ivangabriele/[email protected]
with:
githubToken: ${{ secrets.GH_PAT }}
find: AUTOFILLED_PREVIEW_URL
isHtmlCommentTag: true
replace: ${{ needs.publish.outputs.storybookUrl }}