Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
250127b
Refactor root of yarn monorepo from code to the git root. And NX agen…
kasperpeulen Nov 18, 2025
ec6d354
Fix distribution config
kasperpeulen Nov 27, 2025
3b0a2d7
Fix pretty docs
kasperpeulen Nov 27, 2025
7733316
Fix check
kasperpeulen Nov 27, 2025
69fbe0c
Clean up last things
kasperpeulen Nov 27, 2025
fbc2af4
Make sure the settings.json is deleted before the onboarding test.
kasperpeulen Nov 27, 2025
ac61afb
Update scripts/run-registry.ts
kasperpeulen Nov 27, 2025
ec1bd5d
Fix lint
kasperpeulen Nov 28, 2025
81a8497
Merge remote-tracking branch 'origin/kasper/yarn-monorepo-refactor' i…
kasperpeulen Nov 28, 2025
69106f4
Fix
kasperpeulen Nov 28, 2025
f35970d
Fix
kasperpeulen Nov 28, 2025
d80cf75
Fix
kasperpeulen Nov 28, 2025
c31e808
Merge remote-tracking branch 'origin/next' into kasper/yarn-monorepo-…
kasperpeulen Nov 28, 2025
ae1ebf8
Fix
kasperpeulen Nov 28, 2025
f04dd28
Cleanup
kasperpeulen Nov 28, 2025
d58d659
Make ports backwards compatible for local dev
kasperpeulen Nov 28, 2025
4446340
Remove TODOs
kasperpeulen Nov 28, 2025
5dd20f9
Revert
kasperpeulen Nov 28, 2025
7c89c17
Fix
kasperpeulen Nov 28, 2025
6e6a31c
Fix
kasperpeulen Nov 28, 2025
02e22fa
Fix
kasperpeulen Nov 28, 2025
40cdf8b
Fix
kasperpeulen Nov 28, 2025
39a4409
Fix
kasperpeulen Nov 28, 2025
b4b8b24
Fix
kasperpeulen Nov 28, 2025
729408e
Only move sandboxes to cache when NX is used
kasperpeulen Nov 28, 2025
b9a60d1
Fix build
kasperpeulen Nov 28, 2025
c7244fa
Fix
kasperpeulen Nov 28, 2025
73841fd
Fix
kasperpeulen Nov 28, 2025
a4f5eda
Fix
kasperpeulen Nov 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 89 additions & 86 deletions .circleci/config.yml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .circleci/src/jobs/bench-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
# if there is a base branch AND a PR number in parameters, benchmark packages against those
# this happens when run against a PR
- when:
Expand Down Expand Up @@ -56,6 +56,6 @@ steps:
working_directory: scripts
command: yarn bench-packages --upload
- store_artifacts:
path: bench/packages/results.json
path: storybook/bench/packages/results.json
- report-workflow-on-failure
- cancel-workflow-on-failure
5 changes: 3 additions & 2 deletions .circleci/src/jobs/bench-sandboxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Install sandbox dependencies
command: |
corepack enable
TEMPLATE=$(yarn get-template --cadence << pipeline.parameters.workflow >> --task bench)
cd sandbox/$(yarn get-sandbox-dir --template $TEMPLATE) && yarn
cd $(yarn get-sandbox-dir --template $TEMPLATE) && yarn
- run:
name: Running Bench
command: yarn task --task bench --template $(yarn get-template --cadence << pipeline.parameters.workflow >> --task bench) --no-link --start-from=never --junit
Expand Down
34 changes: 18 additions & 16 deletions .circleci/src/jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ steps:
- restore_cache:
name: Restore Yarn cache
keys:
- build-yarn-2-cache-v5--{{ checksum "code/yarn.lock" }}--{{ checksum "scripts/yarn.lock" }}
- build-yarn-2-cache-v5--{{ checksum "yarn.lock" }}
- run:
name: Compile
command: |
yarn
yarn task --task compile --start-from=auto --no-link --debug
git diff --exit-code
yarn dedupe --check
Expand All @@ -22,24 +23,25 @@ steps:
yarn local-registry --publish
- report-workflow-on-failure
- store_artifacts:
path: code/bench/esbuild-metafiles
path: storybook/code/bench/esbuild-metafiles
- save_cache:
name: Save Yarn cache
key: build-yarn-2-cache-v5--{{ checksum "code/yarn.lock" }}--{{ checksum "scripts/yarn.lock" }}
key: build-yarn-2-cache-v5--{{ checksum "yarn.lock" }}
paths:
- ~/.yarn/berry/cache
- persist_to_workspace:
root: .
root: /tmp
paths:
- code/node_modules
- code/addons
- scripts/node_modules
- code/bench
- code/examples
- code/frameworks
- code/lib
- code/core
- code/builders
- code/renderers
- code/presets
- .verdaccio-cache
- storybook/node_modules
- storybook/code/node_modules
- storybook/code/addons
- storybook/scripts/node_modules
- storybook/code/bench
- storybook/code/examples
- storybook/code/frameworks
- storybook/code/lib
- storybook/code/core
- storybook/code/builders
- storybook/code/renderers
- storybook/code/presets
- storybook/.verdaccio-cache
7 changes: 4 additions & 3 deletions .circleci/src/jobs/check-sandboxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Install sandbox dependencies
command: |
corepack enable
TEMPLATE=$(yarn get-template --cadence << pipeline.parameters.workflow >> --task check-sandbox)
cd sandbox/$(yarn get-sandbox-dir --template $TEMPLATE) && yarn
cd $(yarn get-sandbox-dir --template $TEMPLATE) && yarn
- run:
name: Type check Sandboxes
command: yarn task --task check-sandbox --template $(yarn get-template --cadence << pipeline.parameters.workflow >> --task check-sandbox) --no-link --start-from=never --junit
- report-workflow-on-failure:
template: $(yarn get-template --cadence << pipeline.parameters.workflow >> --task check-sandbox)
- store_test_results:
path: test-results
path: storybook/test-results
3 changes: 2 additions & 1 deletion .circleci/src/jobs/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ steps:
- restore_cache:
name: Restore Yarn cache
keys:
- build-yarn-2-cache-v5--{{ checksum "code/yarn.lock" }}--{{ checksum "scripts/yarn.lock" }}
- build-yarn-2-cache-v5--{{ checksum "yarn.lock" }}
- run:
name: Compile
command: |
yarn
yarn task --task compile --start-from=auto --no-link --debug
- run:
name: Check
Expand Down
4 changes: 2 additions & 2 deletions .circleci/src/jobs/chromatic-internal-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ steps:
# switched this to the CircleCI helper to get the full git history for TurboSnap
- checkout
- attach_workspace:
at: .
at: /tmp
- run:
name: Running Chromatic
command: yarn storybook:ui:chromatic
working_directory: code
- report-workflow-on-failure
- store_test_results:
path: test-results
path: storybook/test-results
11 changes: 7 additions & 4 deletions .circleci/src/jobs/chromatic-sandboxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ parallelism: << parameters.parallelism >>
steps:
- checkout
- attach_workspace:
at: .
at: /tmp
- run:
name: Install sandbox dependencies
# chromatic can only run in a git directory
command: |
corepack enable
cp /tmp/storybook-sandboxes /tmp/storybook/sandbox -r --remove-destination
TEMPLATE=$(yarn get-template --cadence << pipeline.parameters.workflow >> --task chromatic)
cd sandbox/$(yarn get-sandbox-dir --template $TEMPLATE) && yarn
cd $(STORYBOOK_SANDBOX_ROOT=./sandbox yarn get-sandbox-dir --template $TEMPLATE) && yarn
- run:
name: Running Chromatic
command: yarn task --task chromatic --template $(yarn get-template --cadence << pipeline.parameters.workflow >> --task chromatic) --no-link --start-from=never --junit
command: STORYBOOK_SANDBOX_ROOT=./sandbox yarn task --task chromatic --template $(yarn get-template --cadence << pipeline.parameters.workflow >> --task chromatic) --no-link --start-from=never --junit
- report-workflow-on-failure:
template: $(yarn get-template --cadence << pipeline.parameters.workflow >> --task chromatic)
- store_test_results:
path: test-results
path: storybook/test-results
2 changes: 1 addition & 1 deletion .circleci/src/jobs/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- codecov/upload
- report-workflow-on-failure
10 changes: 5 additions & 5 deletions .circleci/src/jobs/create-sandboxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Setup Corepack
command: |
Expand All @@ -31,15 +31,15 @@ steps:
if [[ $TEMPLATE != bench/* ]]; then
yarn --cwd scripts jiti ./event-log-checker.ts build $TEMPLATE
fi
cd sandbox/$(yarn get-sandbox-dir --template $TEMPLATE) && rm -rf node_modules
cd $(yarn get-sandbox-dir --template $TEMPLATE) && rm -rf node_modules
environment:
STORYBOOK_TELEMETRY_DEBUG: 1
STORYBOOK_TELEMETRY_URL: 'http://localhost:6007/event-log'
- report-workflow-on-failure:
template: $(yarn get-template --cadence << pipeline.parameters.workflow >> --task sandbox)
- persist_to_workspace:
root: .
root: /tmp
paths:
- sandbox/**
storybook-sandboxes/**
- store_test_results:
path: test-results
path: storybook/test-results
9 changes: 5 additions & 4 deletions .circleci/src/jobs/e2e-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Install sandbox dependencies
command: |
corepack enable
TEMPLATE=$(yarn get-template --cadence << pipeline.parameters.workflow >> --task e2e-tests-dev)
cd sandbox/$(yarn get-sandbox-dir --template $TEMPLATE) && yarn
cd $(yarn get-sandbox-dir --template $TEMPLATE) && yarn
- run:
name: Running E2E Tests
# TEST_FILES should include all relevant test files, in this case we use the default playwright pattern
Expand All @@ -29,7 +30,7 @@ steps:
- report-workflow-on-failure:
template: $(yarn get-template --cadence << pipeline.parameters.workflow >> --task e2e-tests-dev)
- store_test_results:
path: test-results
path: storybook/test-results
- store_artifacts: # this is where playwright puts more complex stuff
path: code/playwright-results/
path: storybook/code/playwright-results/
destination: playwright
9 changes: 5 additions & 4 deletions .circleci/src/jobs/e2e-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Install sandbox dependencies
command: |
corepack enable
TEMPLATE=$(yarn get-template --cadence << pipeline.parameters.workflow >> --task e2e-tests)
cd sandbox/$(yarn get-sandbox-dir --template $TEMPLATE) && yarn
cd $(yarn get-sandbox-dir --template $TEMPLATE) && yarn
- run:
name: Running E2E Tests
# TEST_FILES should include all relevant test files, in this case we use the default playwright pattern
Expand All @@ -29,7 +30,7 @@ steps:
- report-workflow-on-failure:
template: $(yarn get-template --cadence << pipeline.parameters.workflow >> --task e2e-tests)
- store_test_results:
path: test-results
path: storybook/test-results
- store_artifacts: # this is where playwright puts more complex stuff
path: code/playwright-results/
path: storybook/code/playwright-results/
destination: playwright
6 changes: 3 additions & 3 deletions .circleci/src/jobs/e2e-ui-vitest-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Install dependencies
command: yarn install --no-immutable
Expand All @@ -18,8 +18,8 @@ steps:
command: yarn playwright-e2e
working_directory: test-storybooks/portable-stories-kitchen-sink/react-vitest-3
- store_test_results:
path: test-results
path: storybook/test-results
- store_artifacts:
path: test-storybooks/portable-stories-kitchen-sink/react-vitest-3/test-results/
path: storybook/test-storybooks/portable-stories-kitchen-sink/react-vitest-3/test-results/
destination: playwright
- report-workflow-on-failure
6 changes: 3 additions & 3 deletions .circleci/src/jobs/e2e-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Install dependencies
command: yarn install --no-immutable
Expand All @@ -18,8 +18,8 @@ steps:
command: yarn playwright-e2e
working_directory: test-storybooks/portable-stories-kitchen-sink/react
- store_test_results:
path: test-results
path: storybook/test-results
- store_artifacts:
path: test-storybooks/portable-stories-kitchen-sink/react/test-results/
path: storybook/test-storybooks/portable-stories-kitchen-sink/react/test-results/
destination: playwright
- report-workflow-on-failure
2 changes: 1 addition & 1 deletion .circleci/src/jobs/knip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Knip
command: |
Expand Down
2 changes: 1 addition & 1 deletion .circleci/src/jobs/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Lint
command: |
Expand Down
7 changes: 3 additions & 4 deletions .circleci/src/jobs/pretty-docs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
executor:
class: medium
class: medium+
name: sb_node_22_classic

steps:
Expand All @@ -8,15 +8,14 @@ steps:
- restore_cache:
name: Restore Yarn cache
keys:
- prettydocs-yarn-2-cache-v8--{{ checksum "code/yarn.lock" }}--{{ checksum "scripts/yarn.lock" }}
- prettydocs-yarn-2-cache-v8--{{ checksum "yarn.lock" }}
- run:
name: Install
command: |
cd scripts
yarn install
- save_cache:
name: Save Yarn cache
key: prettydocs-yarn-2-cache-v8--{{ checksum "code/yarn.lock" }}--{{ checksum "scripts/yarn.lock" }}
key: prettydocs-yarn-2-cache-v8--{{ checksum "yarn.lock" }}
paths:
- ~/.yarn/berry/cache
- run:
Expand Down
4 changes: 2 additions & 2 deletions .circleci/src/jobs/script-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Check parallelism count
command: |
Expand All @@ -21,6 +21,6 @@ steps:
cd scripts
yarn test --coverage
- store_test_results:
path: scripts/junit.xml
path: storybook/scripts/junit.xml
- report-workflow-on-failure
- cancel-workflow-on-failure
4 changes: 2 additions & 2 deletions .circleci/src/jobs/smoke-test-sandboxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
at: /tmp
- run:
name: Smoke Testing Sandboxes
command: yarn task --task smoke-test --template $(yarn get-template --cadence << pipeline.parameters.workflow >> --task smoke-test) --no-link --start-from=never --junit
- report-workflow-on-failure:
template: $(yarn get-template --cadence << pipeline.parameters.workflow >> --task smoke-test)
- store_test_results:
path: test-results
path: storybook/test-results
4 changes: 2 additions & 2 deletions .circleci/src/jobs/stories-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ steps:
- git-shallow-clone/checkout_advanced:
clone_options: --depth 1 --verbose
- attach_workspace:
at: .
at: /tmp
- run:
command: |
cd code
TEST_FILES=$(circleci tests glob "**/*.{stories}.{ts,tsx,js,jsx,cjs}" | sed "/^e2e-tests\//d" | sed "/^node_modules\//d")
echo "$TEST_FILES" | circleci tests run --command="xargs yarn test --reporter=junit --reporter=default --outputFile=../test-results/junit-${CIRCLE_NODE_INDEX}.xml" --verbose
name: Run tests
- store_test_results:
path: test-results
path: storybook/test-results
- report-workflow-on-failure
- cancel-workflow-on-failure
Loading