Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2025-09-16 16:12:40 +01:00
parent 4a5830f8fd
commit 976fa7015c
4 changed files with 9 additions and 10 deletions
@@ -1,11 +1,11 @@
# NO-OP placeholder that always passes for other paths
# This is here so that we're able to set the status check as required
name: Storybook Void
name: Chromatic Void
on:
pull_request:
paths-ignore:
- '.github/workflows/verify_storybook.yml'
- '.github/workflows/verify_chromatic.yml'
- 'storybook/**'
- 'packages/config/src/**'
- 'packages/theme/src/**'
@@ -25,7 +25,7 @@ jobs:
noop:
runs-on: ubuntu-latest
name: Storybook
name: Chromatic
steps:
- name: Harden Runner
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
@@ -1,9 +1,9 @@
name: Storybook
name: Chromatic
on:
# NOTE: If you change these you must update verify_storybook-noop.yml as well
pull_request:
paths:
- '.github/workflows/verify_storybook.yml'
- '.github/workflows/verify_chromatic.yml'
- '.storybook/**'
- 'packages/ui/src/**'
- 'packages/config/src/**'
@@ -26,7 +26,7 @@ jobs:
os: [ubuntu-latest]
node-version: [20.x]
name: Storybook
name: Chromatic
steps:
- name: Harden Runner
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
@@ -59,5 +59,5 @@ jobs:
# projectToken intentionally shared to allow collaborators to run Chromatic on forks
# https://www.chromatic.com/docs/custom-ci-provider#run-chromatic-on-external-forks-of-open-source-projects
projectToken: chpt_dab72dc0f97d55b
storybookBuildDir: dist-storybook-chromatic
storybookBuildDir: dist-storybook
onlyChanged: true
+1 -2
View File
@@ -186,5 +186,4 @@ docs.json
tsconfig.typedoc.tmp.json
# Storybook
dist-storybook/
dist-storybook-chromatic/
dist-storybook/
+1 -1
View File
@@ -24,7 +24,7 @@
},
"scripts": {
"build-storybook": "storybook build --output-dir dist-storybook",
"build-storybook:chromatic": "STORYBOOK_STORY_SET=chromatic storybook build --stats-json --output-dir dist-storybook-chromatic",
"build-storybook:chromatic": "STORYBOOK_STORY_SET=chromatic storybook build --stats-json --output-dir dist-storybook",
"build:all": "backstage-cli repo build --all",
"build:api-docs": "LANG=en_EN yarn build:api-reports --docs --exclude 'plugins/@(api-docs|api-docs-module-protoc-gen-doc|app-visualizer|catalog-graph|catalog-import|catalog-unprocessed-entities|config-schema|example-todo-list|example-todo-list-backend)'",
"build:api-reports": "yarn build:api-reports:only --tsc",