@@ -116,27 +116,6 @@ jobs:
116116 env :
117117 SEGMENT_DOWNLOAD_TIMEOUT_MINS : 1
118118
119- - name : Restore amplify-ui node_modules cache
120- uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
121- id : restore-ui-cache
122- with :
123- path : |
124- amplify-ui/node_modules
125- amplify-ui/**/node_modules
126- key : ${{ runner.os }}-amplify-ui-nodemodules-${{ hashFiles('amplify-ui/yarn.lock') }}
127- env :
128- SEGMENT_DOWNLOAD_TIMEOUT_MINS : 3
129-
130- - name : Install amplify-ui packages
131- if : steps.restore-ui-cache.outputs.cache-hit != 'true' || steps.restore-cypress-cache.outputs.cache-hit != 'true'
132- working-directory : ./amplify-ui
133- run : yarn install --frozen-lockfile
134-
135- - name : Install Cypress binary
136- if : steps.restore-cypress-cache.outputs.cache-hit != 'true'
137- working-directory : ./amplify-ui
138- run : npx cypress install
139-
140119 - name : Build amplify-js packages
141120 working-directory : ./amplify-js
142121 run : |
@@ -171,9 +150,15 @@ jobs:
171150
172151 fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));
173152 "
174-
175- # Reinstall to apply resolutions
176- yarn install --force
153+
154+ - name : Install amplify-ui packages with local amplify-js
155+ working-directory : ./amplify-ui
156+ run : yarn install
157+
158+ - name : Install Cypress binary
159+ if : steps.restore-cypress-cache.outputs.cache-hit != 'true'
160+ working-directory : ./amplify-ui
161+ run : npx cypress install
177162
178163 - name : Build amplify-ui @aws-amplify/ui package
179164 working-directory : ./amplify-ui
0 commit comments