File tree Expand file tree Collapse file tree 1 file changed +25
-14
lines changed
Expand file tree Collapse file tree 1 file changed +25
-14
lines changed Original file line number Diff line number Diff line change 6363 path : node_modules
6464 key : ${{ runner.os }}-modern-node-modules-${{ hashFiles('**/package-lock.json') }}
6565
66+ - name : Upload node_modules to artifacts
67+ # if: steps.node_modules_cache.outputs.cache-hit != 'true'
68+ uses : actions/upload-artifact@v4
69+ with :
70+ name : ${{ runner.os }}-modern-node-modules-${{ hashFiles('**/package-lock.json') }}
71+ path : node_modules
72+
6673 - name : Build package
6774 run : npm run build
6875
7784 umd
7885 key : ${{ runner.os }}-modern-build-output-${{ github.sha }}
7986
87+ - name : Upload build output to artifacts
88+ uses : actions/upload-artifact@v4
89+ with :
90+ name : ${{ runner.os }}-modern-build-output-${{ github.sha }}
91+ path : |
92+ tslib
93+ lib
94+ es
95+ es-legacy
96+ umd
97+
8098 build-legacy-node :
8199 if : ${{ inputs.use-matrix == true }}
82100 runs-on : ubuntu-latest
@@ -226,23 +244,16 @@ jobs:
226244 # - name: Build package
227245 # run: npm run build
228246
229- - name : Restore modern node_modules cache
230- uses : actions/cache @v4
247+ - name : Download node_modules from artifacts
248+ uses : actions/upload-artifact @v4
231249 with :
232- path : |
233- node_modules
234- key : ${{ runner.os }}-modern-node-modules-${{ hashFiles('**/package-lock.json') }}
250+ name : ${{ runner.os }}-modern-node-modules-${{ hashFiles('**/package-lock.json') }}
251+ path : node_modules
235252
236- - name : Restore modern build output cache
237- uses : actions/cache @v4
253+ - name : Download build output from artifacts
254+ uses : actions/download-artifact @v4
238255 with :
239- path : |
240- tslib
241- lib
242- es
243- es-legacy
244- umd
245- key : ${{ runner.os }}-modern-build-output-${{ github.sha }}
256+ name : ${{ runner.os }}-modern-build-output-${{ github.sha }}
246257
247258 - name : Run e2e tests
248259 run : npm run task:run-e2e
You can’t perform that action at this time.
0 commit comments