@@ -142,30 +142,13 @@ jobs:
142142 env :
143143 SEGMENT_DOWNLOAD_TIMEOUT_MINS : 3
144144
145- - name : Restore ui/dist cache
146- uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57
147- id : restore-ui-cache
148- with :
149- path : ./packages/ui/dist
150- key : ${{ runner.os }}-ui-${{ inputs.commit }}
151-
152- - name : Restore ${{ matrix.package }}/dist cache
153- id : restore-package-cache
154- uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57
155- with :
156- path : ./packages/${{ matrix.package }}/dist
157- key : ${{ runner.os }}-${{ matrix.package }}-${{ inputs.commit }}
158- env :
159- SEGMENT_DOWNLOAD_TIMEOUT_MINS : 1
160-
161145 - name : Install packages
162146 if : steps.restore-cache.outputs.cache-hit != 'true' || steps.restore-cypress-cache.outputs.cache-hit != 'true'
163147 uses : ./.github/actions/install-with-retries
164148 with :
165149 skip-cypress-binary : false
166150
167151 - name : Build @aws-amplify/ui package
168- if : steps.restore-ui-cache.outputs.cache-hit != 'true'
169152 run : yarn ui build
170153
171154 - name : Build react-core package
@@ -177,7 +160,6 @@ jobs:
177160 run : yarn react-core-notifications build
178161
179162 - name : Build ${{ matrix.package }} package
180- if : steps.restore-package-cache.outputs.cache-hit != 'true'
181163 run : yarn ${{ matrix.package }} build
182164
183165 - name : Build react-notifications package
0 commit comments