mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-10-30 00:27:43 +09:00
Monorepo setup for storybook is very complicated, it has two major problems - it is very annoying to look for any link in commit status - hard to upgrade comparing with single project setup Here merged all storybooks into one in the root.
37 lines
875 B
YAML
37 lines
875 B
YAML
name: Chromatic
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
# cancel in-progress runs on new commits to same PR (gitub.event.number)
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
chromatic:
|
|
timeout-minutes: 20
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 2 # we need to fetch at least parent commit to satisfy Chromatic
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
|
|
|
|
- uses: ./.github/actions/ci-setup
|
|
|
|
- name: Chromatic
|
|
id: chromatic
|
|
uses: chromaui/action@v11.3.0
|
|
with:
|
|
projectToken: bea8dc1981d4
|
|
buildScriptName: storybook:build
|