@@ -18,21 +18,21 @@ jobs:
1818 npm pkg set 'workspaces[]'='examples/*'
1919 - restore_cache :
2020 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" }}
2222 # fallback to using the latest cache if no exact match is found
23- - v9 -dependencies-
23+ - v11 -dependencies-
2424 - run :
2525 name : yarn install
2626 command : |
2727 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
3131 - save_cache :
3232 paths :
3333 - .yarn/cache
3434 - .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" }}
3636 - run : yarn run ci:build:types
3737 - run : yarn run ci:build
3838 - persist_to_workspace :
8686 - run :
8787 command : |
8888 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
9191 fi
9292 - run :
9393 command : |
@@ -143,12 +143,15 @@ jobs:
143143 - run :
144144 command : |
145145 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] 147150 fi
148151 - run :
149152 name : typecheck
150153 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
152155 yarn run tsc --project examples/todo-app/tsconfig.json
153156 yarn run tsc --project examples/github-app/tsconfig.json
154157 fi
0 commit comments