Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] next from storybookjs:next #58

Merged
merged 250 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
a4afdc7
chore(docs): fix glob pattern jest
naporin0624 Feb 9, 2024
11a8484
consolidate generate-sandboxes workflows into a single workflow and c…
JReinhold Feb 9, 2024
81abd2a
temporarily test this branch as for sandbox generation
JReinhold Feb 9, 2024
658f715
correct syntax for local composite actions
JReinhold Feb 9, 2024
a385574
correcterer composite action syntax
JReinhold Feb 9, 2024
871e1b1
correctest composite action syntax
JReinhold Feb 9, 2024
bb0d0d0
move secrets to workflow
JReinhold Feb 9, 2024
02f6241
use regular workflow instead of composite action
JReinhold Feb 9, 2024
f184601
Continue with publishing even if some sandboxes fail
JReinhold Feb 9, 2024
86c5895
Yet Another Maddening Language™
JReinhold Feb 9, 2024
1122215
randomly cause generation failures
JReinhold Feb 9, 2024
241ca16
Merge branch 'next' into docs/fix-glob-pattern
naporin0624 Feb 10, 2024
16b2f27
Merge branch 'next' into docs/fix-glob-pattern
naporin0624 Feb 10, 2024
b074b4c
Merge branch 'next' into docs/fix-glob-pattern
naporin0624 Feb 11, 2024
78f122c
simplify error handling, rethrow errors
JReinhold Feb 12, 2024
b7eb433
fix error logging and summary generation
JReinhold Feb 12, 2024
c9e9d62
fix double error logging
JReinhold Feb 12, 2024
57cbc5e
support partial publishing to sandboxes repo
JReinhold Feb 12, 2024
fe7bd93
Merge branch 'next' into docs/fix-glob-pattern
naporin0624 Feb 12, 2024
1e8eaa4
publish based on the presence of a README.md
JReinhold Feb 13, 2024
fce6818
lower fake error threshold
JReinhold Feb 13, 2024
6b1be49
remove fake errors
JReinhold Feb 13, 2024
cea3844
actually remove fake errors 🤦
JReinhold Feb 13, 2024
1c3713e
always cleanup node_modules, don't collapse sandbox logs
JReinhold Feb 13, 2024
01962f3
remove test variables from generate workflow, add job for main
JReinhold Feb 13, 2024
43deb5f
only write summary in CI
JReinhold Feb 13, 2024
d8e40ac
typo
JReinhold Feb 13, 2024
8774d69
Merge branch 'next' into jeppe/25922-ci-generation-of-sandboxes-fail-…
JReinhold Feb 13, 2024
2527e2a
Merge branch 'next' into docs/fix-glob-pattern
naporin0624 Feb 14, 2024
249276b
support new way of mounting components in svelte 5
JReinhold Feb 23, 2024
f37524b
move and cleanup Svelte components
JReinhold Feb 26, 2024
1b17dfe
comment improvements
JReinhold Feb 26, 2024
a3bfcbb
Fix Svelte version check. 🤦
JReinhold Feb 26, 2024
80cb9ec
fix internal unbundled file references
JReinhold Feb 26, 2024
2d5f1f5
pin Svelte 5 version to next.65
JReinhold Feb 26, 2024
b9247ec
add Svelte prerelease sandbox back to CI
JReinhold Feb 26, 2024
982be2d
bring back fix for resetting story args in Svelte 5
JReinhold Feb 26, 2024
d3f533f
Don't expose 'count' state in Button example component as a prop
JReinhold Feb 26, 2024
b6de765
Merge branch 'next' into docs/fix-glob-pattern
naporin0624 Feb 27, 2024
e29d22b
chore: upgrade esbuild to 0.20.1
43081j Feb 29, 2024
7bcbb3c
only use contributors' github handles in release notes
vanessayuenn Feb 29, 2024
4d24ee0
Resolve vite config from project root instead of cwd
valentinpalkovic Feb 29, 2024
ea40ff8
Handle TypeScript path aliases in react-docgen loader
valentinpalkovic Mar 1, 2024
12495e5
Setup prompt type for automigration
valentinpalkovic Mar 1, 2024
37a59de
Merge branch 'next' into docs/fix-glob-pattern
jonniebigodes Mar 1, 2024
2b48135
Controls: Fix type summary
shilman Mar 2, 2024
2d386cb
Merge branch 'next' into shilman/fix-controls-type-summary
ndelangen Mar 2, 2024
3f766bf
chore: upgrade recast
43081j Mar 2, 2024
d959687
chore: remove qs dependency from manager-api & channels
43081j Mar 2, 2024
f0beb18
Merge pull request #26283 from storybookjs/shilman/fix-controls-type-…
shilman Mar 3, 2024
bb8590c
Add type-safetyness to Fix type
valentinpalkovic Mar 1, 2024
b0f4ab3
Merge pull request #26273 from storybookjs/valentin/support-typescrip…
valentinpalkovic Mar 4, 2024
fbbf22d
Add missing isUpgrade parameter to automigrate function
valentinpalkovic Mar 4, 2024
8909a59
Merge pull request #26262 from storybookjs/valentin/fix-vite-config-a…
valentinpalkovic Mar 4, 2024
7ff80bf
Merge pull request #26293 from storybookjs/valentin/fix-version-check…
valentinpalkovic Mar 4, 2024
9f0bc7d
Add @storybook/addons automigration
valentinpalkovic Mar 4, 2024
eb28dad
Portable stories: Make canvasElement optional in the play function
yannbf Feb 29, 2024
0694772
Update code/lib/preview-api/src/modules/store/csf/portable-stories.te…
yannbf Mar 1, 2024
d39b6c9
use composeConfigs function
yannbf Mar 1, 2024
a289185
update migration notes
yannbf Mar 1, 2024
f60fee3
fix compose configs order
yannbf Mar 1, 2024
2552e03
bring test assertions back
yannbf Mar 1, 2024
40b56a4
use jsx in portable stories react decorator
yannbf Mar 1, 2024
1dd146f
use play function on snapshot tests
yannbf Mar 1, 2024
69e69d1
fix proejct annotation merging logic
yannbf Mar 4, 2024
2b6ce98
Portable stories: Add support for loaders
yannbf Mar 4, 2024
6dae91d
add migration note regarding project annotation overrides
yannbf Mar 4, 2024
43e09f8
Merge branch 'next' into jeppe/svelte-5-prerelease
JReinhold Mar 4, 2024
d7900ad
Merge pull request #26267 from storybookjs/feature/portable-stories-o…
yannbf Mar 4, 2024
c9a26c6
fix the bug and add tests to ensure it doesn't fail ever again
ndelangen Mar 4, 2024
e24a1ee
Merge branch 'next' into norbert/fix-cli-add
ndelangen Mar 4, 2024
8f07e61
fixes
ndelangen Mar 4, 2024
eacdd37
rename for clarity
ndelangen Mar 4, 2024
2d66683
cleanup
ndelangen Mar 4, 2024
be683bf
use hasOwn, which is type-safe, no need for casting
ndelangen Mar 4, 2024
86b27f4
Merge branch 'next' into docs/fix-glob-pattern
jonniebigodes Mar 4, 2024
217c3d0
Merge pull request #25970 from naporin0624/docs/fix-glob-pattern
jonniebigodes Mar 4, 2024
6b0f805
Merge pull request #26188 from storybookjs/jeppe/svelte-5-prerelease
JReinhold Mar 4, 2024
320fd3d
found a flaw thanks to review from valentin
ndelangen Mar 4, 2024
b6b98eb
change package name for test
ndelangen Mar 4, 2024
ba80f3c
Merge pull request #26286 from 43081j/recast-update
shilman Mar 4, 2024
9e01244
fix(vue-component-meta): prevent reference error when using re-exports
larsrickert Mar 4, 2024
f0a23ca
improve the refs detection
ndelangen Mar 4, 2024
79e976b
Merge branch 'next' into norbert/composition-loading-state-fix
ndelangen Mar 4, 2024
6701349
Merge pull request #26298 from storybookjs/norbert/fix-cli-add
ndelangen Mar 4, 2024
dc07edd
Update minimum Node.js version requirement
valentinpalkovic Mar 5, 2024
4df8934
Merge pull request #26312 from storybookjs/valentin/restrict-usage-of…
valentinpalkovic Mar 5, 2024
02eec68
Merge pull request #26295 from storybookjs/valentin/add-addons-automi…
valentinpalkovic Mar 5, 2024
5b994e7
Merge branch 'next' into norbert/composition-loading-state-fix
ndelangen Mar 5, 2024
7e6438f
fix test
ndelangen Mar 5, 2024
8cbb06d
Merge branch 'norbert/composition-loading-state-fix' of https://githu…
ndelangen Mar 5, 2024
b4a2740
make composeStory in Vue return a component instead of a function
JReinhold Mar 5, 2024
fcd8bf2
fix testing-react import in migration notes
JReinhold Mar 5, 2024
e286d2b
add migration note about new composeStory Vue API
JReinhold Mar 5, 2024
6a0c827
Merge pull request #26013 from storybookjs/jeppe/25922-ci-generation-…
JReinhold Mar 5, 2024
12f5c82
use `user` directly from GH PR info instead of links.user
JReinhold Mar 5, 2024
9fdc7a2
Docs: Snapshot testing updates
jonniebigodes Mar 5, 2024
788aaac
add functionality of emitting an event & and test for websocket-trans…
ndelangen Mar 5, 2024
ff54701
fix
ndelangen Mar 5, 2024
2a63d2d
Merge branch 'next' into norbert/ws-disconnect-event
ndelangen Mar 5, 2024
93a3159
Merge branch 'next' into esbuild
ndelangen Mar 5, 2024
20c596e
Merge pull request #26304 from storybookjs/norbert/composition-loadin…
ndelangen Mar 5, 2024
c4956e2
broaden version range for vite compatibility
ndelangen Mar 5, 2024
3f3eb2c
Merge branch 'next' into pr/43081j/26255
ndelangen Mar 5, 2024
b709d27
Merge branch 'next' into norbert/ws-disconnect-event
ndelangen Mar 5, 2024
861cfb0
Remove 'left' property from TooltipLinkList and Link components and a…
valentinpalkovic Mar 5, 2024
ba64b33
use h helper in vue3 decorators instead, update migration notes
yannbf Mar 5, 2024
e37e194
Docs: Fix FAQ
jonniebigodes Mar 5, 2024
6c71508
Merge pull request #26317 from storybookjs/jeppe/compose-vue-api-changes
yannbf Mar 5, 2024
1c0ce04
Merge branch 'next' into docs_faq_tweaks
jonniebigodes Mar 5, 2024
85c4d9c
Merge pull request #26322 from storybookjs/norbert/ws-disconnect-event
shilman Mar 5, 2024
ad2f10d
Write changelog for 8.0.0-rc.2 [skip ci]
storybook-bot Mar 5, 2024
b6422ee
Merge branch 'next' into docs_faq_tweaks
jonniebigodes Mar 5, 2024
69f0248
Merge pull request #26326 from storybookjs/docs_faq_tweaks
jonniebigodes Mar 5, 2024
3fc345c
Merge pull request #26290 from storybookjs/version-non-patch-from-8.0…
shilman Mar 5, 2024
ebec658
Bump version from "8.0.0-rc.1" to "8.0.0-rc.2" [skip ci]
storybook-bot Mar 5, 2024
94099bb
Merge branch 'next-release' into next
storybook-bot Mar 5, 2024
9621341
use dynamic vite imports in docs snippets
JReinhold Mar 5, 2024
b314219
Merge pull request #26330 from storybookjs/jeppe/docs-vite-import
JReinhold Mar 5, 2024
9d90dc1
don't re-render sidebar whenever any manager UI state changes
JReinhold Mar 5, 2024
cd2dac3
add story for testing scroll behavior
JReinhold Mar 6, 2024
43a70e9
refactor Sidebar stories
JReinhold Mar 6, 2024
93f03bc
Merge branch 'next' into jeppe/26022-bug-sb8-sidebar-scrolls-to-selec…
JReinhold Mar 6, 2024
85ab8aa
Update MIGRATION.md
valentinpalkovic Mar 6, 2024
489eba2
Merge pull request #26303 from storybookjs/fix/26179-vue-component-me…
kasperpeulen Mar 6, 2024
2661457
Merge pull request #26337 from storybookjs/jeppe/26022-bug-sb8-sideba…
JReinhold Mar 6, 2024
f352857
use npm to create qwik sandbox
JReinhold Mar 6, 2024
a328c20
Merge pull request #26257 from storybookjs/vy/changelog-contributors
vanessayuenn Mar 6, 2024
e4a47f5
replace testing-library with test in monorepo
ndelangen Mar 6, 2024
1fac5e1
Merge pull request #26255 from 43081j/esbuild
ndelangen Mar 6, 2024
dbef8b5
Add explicit actions to CLI header story
kasperpeulen Mar 6, 2024
430cf1e
Fix theme addon ID
valentinpalkovic Mar 6, 2024
6b09614
Update MIGRATION.md
valentinpalkovic Mar 6, 2024
4e0b97f
Update theme-switcher to initialize the addon appropriate after Story…
valentinpalkovic Mar 6, 2024
f1bdb70
what's new modal changes
kasperpeulen Mar 6, 2024
b3fa8c5
load refs in sequence, await writing to state
ndelangen Mar 6, 2024
b045da1
rename & fix test
ndelangen Mar 6, 2024
414193b
improve understandability of the test
ndelangen Mar 6, 2024
50973c3
Merge branch 'next' into pr/43081j/26285
ndelangen Mar 6, 2024
52babf0
fix linting
ndelangen Mar 6, 2024
e467a0e
remove unused dependency
ndelangen Mar 6, 2024
e76e062
Add `angular` framework doc
kylegach Feb 29, 2024
6bc602c
Rename snippet
kylegach Mar 6, 2024
3612c0b
Add docs for `vue3-vite` framework
kylegach Feb 27, 2024
8f2a88a
Apply suggestions from code review
kylegach Feb 28, 2024
ee11be5
Address comments
kylegach Feb 28, 2024
b211ec1
Add builder options details
kylegach Feb 29, 2024
28207a4
Address TKs
kylegach Feb 29, 2024
19044b8
Make content conditional on required renderer
kylegach Mar 5, 2024
ecb8537
Replace README
kylegach Mar 5, 2024
5c269f2
Add troubleshooting
kylegach Mar 6, 2024
e87d043
Merge pull request #26285 from 43081j/qs-part-1
ndelangen Mar 7, 2024
c6ad7e2
Viewport: Fix editing when default viewport is set
shilman Mar 7, 2024
fd4c515
Update code/addons/viewport/src/Tool.tsx
shilman Mar 7, 2024
2550a3b
Merge branch 'next' into shilman/26334-fix-viewport-edit
shilman Mar 7, 2024
099def2
Merge pull request #26360 from storybookjs/shilman/26334-fix-viewport…
shilman Mar 7, 2024
6ffa140
Merge pull request #26353 from storybookjs/valentin/addon-themes-fix-…
valentinpalkovic Mar 7, 2024
55a3f07
Merge pull request #26324 from storybookjs/valentin/document-removal-…
valentinpalkovic Mar 7, 2024
5ca2466
Core: Fix path separator issue in check-addon-order
valentinpalkovic Mar 7, 2024
1e29df2
Merge pull request #26362 from storybookjs/valentin/fix-addon-orderin…
valentinpalkovic Mar 7, 2024
ef92b27
Write changelog for 8.0.0-rc.3 [skip ci]
storybook-bot Mar 7, 2024
8f3b3b8
CLI: Fix doctor compatibility check
yannbf Mar 7, 2024
af041ca
Merge pull request #26339 from storybookjs/version-non-patch-from-8.0…
vanessayuenn Mar 7, 2024
d6f8526
Bump version from "8.0.0-rc.2" to "8.0.0-rc.3" [skip ci]
storybook-bot Mar 7, 2024
1d76565
Fix attaching action, after a spy is restored to the original impleme…
kasperpeulen Mar 7, 2024
8804797
add an automigration for upgrading dependencies
ndelangen Mar 7, 2024
dc74337
Merge pull request #26221 from storybookjs/framework-doc-vue3-vite
kasperpeulen Mar 7, 2024
32de171
Add a comment
kasperpeulen Mar 7, 2024
69b78cc
Merge pull request #26364 from storybookjs/kasper-fix-attaach-action
kasperpeulen Mar 7, 2024
5af40cd
Merge pull request #26352 from storybookjs/kasper/cli-story-update
kasperpeulen Mar 7, 2024
b400750
Merge pull request #26355 from storybookjs/kasper/whats-new-adjustment
kasperpeulen Mar 7, 2024
54eccd1
improvements
ndelangen Mar 7, 2024
5ee7f99
Update index.md
joevaugh4n Mar 7, 2024
3356ca2
Update index.md
joevaugh4n Mar 7, 2024
6047711
make it look prettier
ndelangen Mar 7, 2024
83303b1
Merge branch 'next' into fix/doctor-compat-check
ndelangen Mar 7, 2024
d478011
Merge branch 'next' into norbert/automigration-upgrading-storybook-re…
ndelangen Mar 7, 2024
b317cdb
Merge branch 'fix/doctor-compat-check' into norbert/automigration-upg…
ndelangen Mar 7, 2024
6c5bb5e
revert the use of satisfies
ndelangen Mar 7, 2024
e0444ac
Address comments
kylegach Mar 7, 2024
4c60e7b
minor typing issues fixed
ndelangen Mar 7, 2024
586ba18
fix another typing issue
ndelangen Mar 7, 2024
247015e
Merge pull request #26363 from storybookjs/fix/doctor-compat-check
ndelangen Mar 7, 2024
422aa0d
Merge branch 'next' into norbert/automigration-upgrading-storybook-re…
ndelangen Mar 7, 2024
3d3a326
Merge pull request #26376 from storybookjs/joevaugh4n-patch-4
kylegach Mar 7, 2024
3fc8363
Merge pull request #26351 from storybookjs/norbert/remove-testing-lib
ndelangen Mar 7, 2024
9a1c77c
make `changeRefVersion` async as well, and correct the types
ndelangen Mar 7, 2024
4780ae3
Add section about missing vite config file
kylegach Mar 7, 2024
8b0040f
use a shorter link
ndelangen Mar 7, 2024
33fd582
use the right link
ndelangen Mar 7, 2024
c550330
Docs: update index.md
joevaugh4n Mar 7, 2024
9eea0d4
Update index.md
joevaugh4n Mar 7, 2024
c2be62f
Update from-older-version.md
joevaugh4n Mar 7, 2024
0a91864
Merge pull request #26378 from storybookjs/update-migration-guide-2
kylegach Mar 7, 2024
3491284
Merge pull request #26379 from storybookjs/norbert/shorter-link-cli-v…
ndelangen Mar 7, 2024
fc222b9
Merge pull request #26340 from storybookjs/jeppe/fix-qwik-sandbox
JReinhold Mar 8, 2024
13e872c
React: Support all React component types in JSX Decorator
yannbf Mar 8, 2024
2f5cfe7
Update code/lib/manager-api/src/modules/refs.ts
ndelangen Mar 8, 2024
e887915
fixes
ndelangen Mar 8, 2024
4fb9164
Fix missing fn import
kasperpeulen Mar 8, 2024
15fa09b
make stylistic code change
ndelangen Mar 8, 2024
4e723fe
Merge branch 'next' into norbert/fix-composition-loading-problem
ndelangen Mar 8, 2024
df71b26
CLI: Remove duplicated "duplicated dependency" warning
yannbf Mar 8, 2024
6903f38
Merge pull request #26384 from storybookjs/kasper/preact-template
ndelangen Mar 8, 2024
37401af
Merge branch 'next' into yann/fix-docs-jsx-in-react
ndelangen Mar 8, 2024
d135d12
Merge pull request #26356 from storybookjs/norbert/fix-composition-lo…
ndelangen Mar 8, 2024
fa2b315
Update code/lib/cli/src/automigrate/fixes/upgrade-storybook-related-d…
ndelangen Mar 8, 2024
93b7ed4
use document.body as default canvasElement instead of injecting a roo…
JReinhold Mar 8, 2024
0dbe3e4
Merge branch 'next' into jeppe/composed-play-default-canvaselement
JReinhold Mar 8, 2024
af63b0f
wip
ndelangen Mar 8, 2024
9dfb3aa
make it better
ndelangen Mar 8, 2024
9d552b2
even better
ndelangen Mar 8, 2024
becdbd9
remove the problematicPackages feature
ndelangen Mar 8, 2024
80a112d
fix
ndelangen Mar 8, 2024
d0663d6
Merge branch 'next' into norbert/automigration-upgrading-storybook-re…
ndelangen Mar 8, 2024
b4e944d
ship it
ndelangen Mar 8, 2024
d98cfc9
Merge branch 'next' into yann/fix-docs-jsx-in-react
ndelangen Mar 8, 2024
fc86712
Merge pull request #26385 from storybookjs/yann/remove-duplicated-dup…
ndelangen Mar 8, 2024
909cb23
remove hard-coded login in inner command
ndelangen Mar 8, 2024
b197874
Revert "remove hard-coded login in inner command"
ndelangen Mar 8, 2024
b74ca12
add tests
yannbf Mar 8, 2024
d369c9d
Merge pull request #26387 from storybookjs/jeppe/composed-play-defaul…
yannbf Mar 8, 2024
a6b04dc
Merge pull request #26382 from storybookjs/yann/fix-docs-jsx-in-react
yannbf Mar 8, 2024
0702351
Merge branch 'next' into framework-doc-angular
kylegach Mar 8, 2024
0b2b5ff
Merge pull request #26269 from storybookjs/framework-doc-angular
kylegach Mar 8, 2024
0cfd141
Merge pull request #26377 from storybookjs/norbert/automigration-upgr…
ndelangen Mar 8, 2024
b5eacba
Docs: Fix table alignment
jonniebigodes Mar 10, 2024
973fa2d
Merge pull request #26398 from storybookjs/docs_fix_tables
jonniebigodes Mar 10, 2024
9c2d525
fix the esbuild compatibility versions ranges
ndelangen Mar 11, 2024
4f6f044
Merge pull request #26405 from storybookjs/norbert/fix-esbuild-version
ndelangen Mar 11, 2024
c1fc191
Merge branch 'next' into docs_snapshot_testing
jonniebigodes Mar 11, 2024
37276b2
Merge pull request #26321 from storybookjs/docs_snapshot_testing
jonniebigodes Mar 11, 2024
a6e4d90
Write changelog for 8.0.0-rc.4 [skip ci]
storybook-bot Mar 11, 2024
46bc788
Merge pull request #26370 from storybookjs/version-non-patch-from-8.0…
vanessayuenn Mar 11, 2024
bfa0570
Bump version from "8.0.0-rc.3" to "8.0.0-rc.4" [skip ci]
storybook-bot Mar 11, 2024
d978771
add a flag for detecting is the latest version we got from npm matche…
ndelangen Mar 11, 2024
eac3a3b
Merge pull request #26410 from storybookjs/norbert/fix-automigration-…
ndelangen Mar 11, 2024
cdfd820
Write changelog for 8.0.0-rc.5 [skip ci]
storybook-bot Mar 11, 2024
1e33053
Merge pull request #26412 from storybookjs/version-non-patch-from-8.0…
vanessayuenn Mar 11, 2024
9050c69
Bump version from "8.0.0-rc.4" to "8.0.0-rc.5" [skip ci]
storybook-bot Mar 11, 2024
116fd4a
Add react-vite framework doc
kylegach Feb 29, 2024
3586fc9
Address comments
kylegach Mar 7, 2024
3004edf
Merge pull request #26264 from storybookjs/framework-doc-react-vite
kylegach Mar 11, 2024
d392a90
Add `react-webpack5` framework doc
kylegach Mar 5, 2024
f9646dd
Address comments
kylegach Mar 7, 2024
298d60c
Merge pull request #26265 from storybookjs/framework-doc-react-webpack5
kylegach Mar 11, 2024
fffbbc9
Add `svelte-vite` framework doc
kylegach Mar 6, 2024
82e153f
Merge pull request #26358 from storybookjs/framework-doc-svelte-vite
kylegach Mar 11, 2024
a5cfe8e
Bump next to be one minor ahead of main [skip ci]
storybook-bot Mar 11, 2024
ec3f7ce
Update CHANGELOG.md for v8.0.0 [skip ci]
storybook-bot Mar 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -706,30 +706,30 @@ workflows:
requires:
- build
- create-sandboxes:
parallelism: 34
parallelism: 35
requires:
- build
# - smoke-test-sandboxes: # disabled for now
# requires:
# - create-sandboxes
- build-sandboxes:
parallelism: 34
parallelism: 35
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 31
parallelism: 32
requires:
- build-sandboxes
- e2e-production:
parallelism: 29
parallelism: 30
requires:
- build-sandboxes
- e2e-dev:
parallelism: 2
requires:
- create-sandboxes
- test-runner-production:
parallelism: 29
parallelism: 30
requires:
- build-sandboxes

Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/generate-sandboxes-main.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/generate-sandboxes-next.yml

This file was deleted.

127 changes: 127 additions & 0 deletions .github/workflows/generate-sandboxes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Generate and publish sandboxes

on:
schedule:
- cron: "2 2 */1 * *"
workflow_dispatch:
# To test fixes on push rather than wait for the scheduling, do the following:
# 1. Uncomment the lines below and add your branch.
# push:
# branches:
# - <your-branch-name>
# 2. Change the "ref" value to <your-branch-name> in the actions/checkout step below.
# 3. Comment out the whole "generate-main" job starting at line 77
# 4. 👉 DON'T FORGET TO UNDO THE STEPS BEFORE YOU MERGE YOUR CHANGES!

env:
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
CLEANUP_SANDBOX_NODE_MODULES: "true"

defaults:
run:
working-directory: ./code

jobs:
generate-next:
name: Generate to next
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: next

- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: Setup git user
run: |
git config --global user.name "storybook-bot"
git config --global user.email "[email protected]"

- name: Install dependencies
working-directory: ./scripts
run: node --experimental-modules ./check-dependencies.js

- name: Compile Storybook libraries
run: yarn task --task compile --start-from=auto --no-link

- name: Publish to local registry
run: yarn local-registry --publish

- name: Run local registry
run: yarn local-registry --open &

- name: Wait for registry
run: yarn wait-on tcp:127.0.0.1:6001

- name: Generate
id: generate
run: yarn generate-sandboxes --local-registry

- name: Publish
# publish sandboxes even if the generation fails, as some sandboxes might have been generated successfully
if: ${{ !cancelled() }}
run: yarn publish-sandboxes --remote=https://storybook-bot:${{ secrets.PAT_STORYBOOK_BOT }}@github.com/storybookjs/sandboxes.git --push --branch=next

- name: Report failure to Discord
if: failure()
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_MONITORING_URL }}
uses: Ilshidur/action-discord@master
with:
args: |
The generation of some or all sandboxes on the **next** branch has failed.
[See the job summary for details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})

generate-main:
name: Generate to main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main

- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: Setup git user
run: |
git config --global user.name "storybook-bot"
git config --global user.email "[email protected]"

- name: Install dependencies
working-directory: ./scripts
run: node --experimental-modules ./check-dependencies.js

- name: Compile Storybook libraries
run: yarn task --task compile --start-from=auto --no-link

- name: Publish to local registry
run: yarn local-registry --publish

- name: Run local registry
run: yarn local-registry --open &

- name: Wait for registry
run: yarn wait-on tcp:127.0.0.1:6001

- name: Generate
id: generate
run: yarn generate-sandboxes --local-registry

- name: Publish
# publish sandboxes even if the generation fails, as some sandboxes might have been generated successfully
if: ${{ !cancelled() }}
run: yarn publish-sandboxes --remote=https://storybook-bot:${{ secrets.PAT_STORYBOOK_BOT }}@github.com/storybookjs/sandboxes.git --push --branch=main

- name: Report failure to Discord
if: failure()
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_MONITORING_URL }}
uses: Ilshidur/action-discord@master
with:
args: |
The generation of some or all sandboxes on the **main** branch has failed.
[See the job summary for details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
Loading
Loading