[ci] Fix storybooks (#149077)

There's a [known
issue](https://github.com/storybookjs/storybook/issues/20482) with
storybooks 6 and node 18+ requiring use of the legacy openssl provider.
This adds the `--openssl-legacy-provider` flag to our storybooks
entrypoint.

This is similar to a few of the webpack related changes in
https://github.com/elastic/kibana/pull/144012, merging early to fix CI.
FYI @watson
This commit is contained in:
Jon 2023-01-17 15:40:38 -06:00 committed by GitHub
parent d9b3a4f566
commit 8233211960
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@
"makelogs": "node scripts/makelogs",
"spec_to_console": "node scripts/spec_to_console",
"start": "node scripts/kibana --dev",
"storybook": "node scripts/storybook",
"storybook": "node --openssl-legacy-provider scripts/storybook",
"test:ftr": "node scripts/functional_tests",
"test:ftr:runner": "node scripts/functional_test_runner",
"test:ftr:server": "node scripts/functional_tests_server",