Skip to content

Commit a194b84

Browse files
docs: build storybook with react 18 (#6228)
1 parent 367628c commit a194b84

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/docs-stable.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
3636
- name: Build Storybook
3737
run: |
38+
# TODO remove as soon as https://github.com/recharts/recharts/issues/4558 is resolved
39+
yarn set resolution "@types/react@npm:*" "18"
40+
yarn set resolution "@types/react-dom@npm:*" "18"
41+
yarn add react@18 react-dom@18
3842
yarn build:storybook
3943
yarn build:storybook-sitemap --basePath "v${{ env.MAJOR_VERSION }}"
4044
env:

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ jobs:
122122
- name: Install and Build
123123
run: |
124124
yarn install --immutable
125+
# TODO remove as soon as https://github.com/recharts/recharts/issues/4558 is resolved
126+
yarn set resolution "@types/react@npm:*" "18"
127+
yarn set resolution "@types/react-dom@npm:*" "18"
128+
yarn add react@18 react-dom@18
125129
yarn build:storybook
126130
env:
127131
NODE_OPTIONS: '--max-old-space-size=4096'

0 commit comments

Comments
 (0)