@@ -18,21 +18,21 @@ jobs:
18
18
npm pkg set 'workspaces[]'='examples/*'
19
19
- restore_cache :
20
20
keys :
21
- - v9 -dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}
21
+ - v11 -dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}
22
22
# fallback to using the latest cache if no exact match is found
23
- - v9 -dependencies-
23
+ - v11 -dependencies-
24
24
- run :
25
25
name : yarn install
26
26
command : |
27
27
sudo corepack enable
28
- YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn workspace todo-app add @data-client/endpoint@workspace:^ @data-client/react@workspace:^ @data-client/rest@workspace:^
29
- YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn workspace github-app add @data-client/graphql@workspace:^ @data-client/hooks@workspace:^ @data-client/react@workspace:^ @data-client/rest@workspace:^
30
- YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install
28
+ YARN_ENABLE_GLOBAL_CACHE=false YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn workspace todo-app add @data-client/endpoint@workspace:^ @data-client/react@workspace:^ @data-client/rest@workspace:^
29
+ YARN_ENABLE_GLOBAL_CACHE=false YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn workspace github-app add @data-client/graphql@workspace:^ @data-client/hooks@workspace:^ @data-client/react@workspace:^ @data-client/rest@workspace:^
30
+ YARN_ENABLE_GLOBAL_CACHE=false YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install
31
31
- save_cache :
32
32
paths :
33
33
- .yarn/cache
34
34
- .yarn/install-state.gz
35
- key : v9 -dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}
35
+ key : v11 -dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}
36
36
- run : yarn run ci:build:types
37
37
- run : yarn run ci:build
38
38
- persist_to_workspace :
86
86
- run :
87
87
command : |
88
88
if [ "<< parameters.react-version >>" != "^18" ]; then
89
- yarn add --dev react@<< parameters.react-version >> react-dom@<< parameters.react-version >> react-test-renderer@<< parameters.react-version >> @testing-library/react@^12.0.0 @testing-library/react-hooks
90
- yarn workspace @data-client/test add @testing-library/react@^12.0.0
89
+ YARN_ENABLE_GLOBAL_CACHE=false yarn add --dev react@<< parameters.react-version >> react-dom@<< parameters.react-version >> react-test-renderer@<< parameters.react-version >> @testing-library/react@^12.0.0 @testing-library/react-hooks
90
+ YARN_ENABLE_GLOBAL_CACHE=false yarn workspace @data-client/test add @testing-library/react@^12.0.0
91
91
fi
92
92
- run :
93
93
command : |
@@ -143,12 +143,15 @@ jobs:
143
143
- run :
144
144
command : |
145
145
if [ "<< parameters.typescript-version >>" != "latest" ]; then
146
- yarn add --dev typescript@<< parameters.typescript-version >>
146
+ YARN_ENABLE_GLOBAL_CACHE=false yarn add --dev typescript@<< parameters.typescript-version >>
147
+ fi
148
+ if [ "<< parameters.typescript-version >>" == "~4.0" ]; then
149
+ YARN_ENABLE_GLOBAL_CACHE=false yarn workspaces foreach -Rpt --from github-app --from todo-app add -DE @types/[email protected]
147
150
fi
148
151
- run :
149
152
name : typecheck
150
153
command : |
151
- if [ "<< parameters.typescript-version >>" == "latest" ] || [ "<< parameters.typescript-version >>" == "~4.8" ]; then
154
+ if [ "<< parameters.typescript-version >>" == "latest" ] || [ "<< parameters.typescript-version >>" == "~5.3" ] || [ "<< parameters.typescript-version >>" == "~ 4.8" ]; then
152
155
yarn run tsc --project examples/todo-app/tsconfig.json
153
156
yarn run tsc --project examples/github-app/tsconfig.json
154
157
fi
0 commit comments