File tree Expand file tree Collapse file tree 3 files changed +21
-16
lines changed
actions/webpack-persistent-cache Expand file tree Collapse file tree 3 files changed +21
-16
lines changed Original file line number Diff line number Diff line change
1
+ name : Webpack persistent cache
2
+ description : Cache webpack's persistent cache between builds.
3
+
4
+ outputs :
5
+ cache-hit :
6
+ description : Whether the cache was restored from the cache key.
7
+ value : ${{ steps.build-webpack-persistent-cache.outputs.cache-hit }}
8
+
9
+ runs :
10
+ using : composite
11
+ steps :
12
+ - uses : actions/cache@v4
13
+ id : build-webpack-persistent-cache
14
+ with :
15
+ path : node_modules/.cache
16
+ key : build-${{ hashFiles('**/webpack.*.mjs') }}-${{ hashFiles('**/yarn.lock') }}
17
+ restore-keys : |-
18
+ build-${{ hashFiles('**/webpack.*.mjs') }}-${{ hashFiles('**/yarn.lock') }}
19
+ build-${{ hashFiles('**/webpack.*.mjs') }}-
Original file line number Diff line number Diff line change 24
24
cache : yarn
25
25
26
26
- name : Enable webpack persistent caching
27
- uses : actions/cache@v4
28
- id : build-webpack-persistent-cache
29
- with :
30
- path : node_modules/.cache
31
- key : build-${{ hashFiles('**/webpack.*.mjs') }}-${{ hashFiles('**/yarn.lock') }}
32
- restore-keys : |-
33
- build-${{ hashFiles('**/webpack.*.mjs') }}-${{ hashFiles('**/yarn.lock') }}
34
- build-${{ hashFiles('**/webpack.*.mjs') }}-
27
+ uses : ./.github/actions/webpack-persistent-cache
35
28
36
29
- run : yarn --frozen-lockfile
37
30
- name : Build site
Original file line number Diff line number Diff line change 82
82
- run : yarn
83
83
84
84
- name : Enable webpack persistent caching
85
- uses : actions/cache@v4
86
- id : build-webpack-persistent-cache
87
- with :
88
- path : node_modules/.cache
89
- key : build-${{ hashFiles('**/webpack.*.mjs') }}-${{ hashFiles('**/yarn.lock') }}
90
- restore-keys : |-
91
- build-${{ hashFiles('**/webpack.*.mjs') }}-${{ hashFiles('**/yarn.lock') }}
92
- build-${{ hashFiles('**/webpack.*.mjs') }}-
85
+ uses : ./.github/actions/webpack-persistent-cache
93
86
94
87
- name : Cypress run
95
88
uses : cypress-io/github-action@v6
You can’t perform that action at this time.
0 commit comments