@@ -58,7 +58,7 @@ install_cli_with_local_codegen: &install_cli
5858 startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
5959 setNpmRegistryUrlToLocal
6060 changeNpmGlobalPath
61- npm install -g @aws-amplify/cli-internal
61+ npm install -g @aws-amplify/cli-internal@11.0.0-rc.e5f00c392.0
6262 amplify -v
6363 npm list --global --depth=1
6464 unsetNpmRegistryUrl
@@ -184,7 +184,7 @@ jobs:
184184 name : Run e2e tests
185185 command : |
186186 cd packages/amplify-codegen-e2e-tests
187- yarn e2e --maxWorkers=3 $TEST_SUITE
187+ yarn e2e --forceExit -- maxWorkers=3 $TEST_SUITE
188188 no_output_timeout : 20m
189189 - store_test_results :
190190 path : packages/amplify-codegen-e2e-tests/
@@ -195,18 +195,27 @@ jobs:
195195 << : *defaults
196196 executor : << parameters.os >>
197197 steps :
198- - attach_workspace :
199- at : ./
200- - restore_cache :
201- key : amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-<< parameters.os >>
202- - restore_cache :
203- key : amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}-<< parameters.os >>
198+ - checkout
199+ - run : yarn config set workspaces-experimental true
200+ - run : yarn cache clean --force
201+ - run : yarn run production-build
202+ - run :
203+ name : Publish to verdaccio
204+ command : |
205+ source .circleci/local_publish_helpers.sh
206+ startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
207+ setNpmRegistryUrlToLocal
208+ loginToLocalRegistry
209+ git config user.email [email protected] 210+ git config user.name "Doesnt Matter"
211+ yarn publish-to-verdaccio
212+ unsetNpmRegistryUrl
204213 - run : *install_cli
205214 - run :
206215 name : Run e2e tests
207216 command : |
208217 cd packages/amplify-codegen-e2e-tests
209- yarn e2e --maxWorkers=3 $TEST_SUITE
218+ yarn e2e --forceExit -- maxWorkers=3 $TEST_SUITE
210219 no_output_timeout : 20m
211220 - store_test_results :
212221 path : packages/amplify-codegen-e2e-tests/
@@ -232,7 +241,7 @@ jobs:
232241 name : Run e2e tests
233242 command : |
234243 cd packages/amplify-codegen-e2e-tests
235- yarn e2e --maxWorkers=3 $TEST_SUITE
244+ yarn e2e --forceExit -- maxWorkers=3 $TEST_SUITE
236245 no_output_timeout : 20m
237246 - store_test_results :
238247 path : packages/amplify-codegen-e2e-tests/
@@ -287,24 +296,18 @@ workflows:
287296 build_test_deploy :
288297 jobs :
289298 - build :
290- name : build-<< matrix.os >>
291- matrix :
292- parameters :
293- os : [l, m]
299+ os : l
294300 - test :
295301 name : test-<< matrix.os >>
296302 matrix :
297303 parameters :
298304 os : [l, w]
299305 requires :
300- - build-l
306+ - build
301307 - publish_to_local_registry :
302- name : publish_to_local_registry-<< matrix.os >>
303- matrix :
304- parameters :
305- os : [l, m]
308+ os : l
306309 requires :
307- - build-<< matrix.os >>
310+ - build
308311 filters :
309312 branches :
310313 only :
@@ -316,7 +319,7 @@ workflows:
316319 - cleanup-resources
317320 os : l
318321 requires :
319- - publish_to_local_registry-l
322+ - publish_to_local_registry
320323 post-steps :
321324 - run : *cleanup_e2e
322325 filters :
0 commit comments