File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,34 @@ jobs:
84
84
run : npm -v
85
85
- name : Install Dependencies
86
86
run : npm i --no-audit --no-fund
87
+ - name : Rebuild deps
88
+ run : npm rebuild
89
+
87
90
- name : Setup Pages
88
91
uses : actions/configure-pages@v1
92
+
93
+ - name : Restore cache
94
+ id : cache-gatsby
95
+ uses : actions/cache/restore@v3
96
+ with :
97
+ key : ${{ runner.os }}-gatsby-${{ github.ref_name }}
98
+ path : |
99
+ public
100
+ .cache
101
+
89
102
- name : Build documentation
90
103
run : npm run build
91
104
env :
92
105
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
106
+
107
+ - name : Save cache
108
+ uses : actions/cache/save@v3
109
+ with :
110
+ key : ${{ steps.cache-gatsby.outputs.cache-primary-key }}
111
+ path : |
112
+ public
113
+ .cache
114
+
93
115
- name : Upload artifact
94
116
uses : actions/upload-pages-artifact@v1
95
117
with :
Original file line number Diff line number Diff line change 8
8
"private" : true ,
9
9
"scripts" : {
10
10
"develop" : " gatsby develop" ,
11
- "build" : " NODE_OPTIONS=--max-old-space-size=7168 gatsby build" ,
11
+ "build" : " NODE_OPTIONS=--max-old-space-size=7168 gatsby build --verbose --log-pages" ,
12
+ "clean" : " rm -rf .cache/ public/" ,
12
13
"serve" : " gatsby serve" ,
13
14
"lint" : " eslint \" **/*.js\" " ,
14
15
"postlint" : " template-oss-check" ,
Original file line number Diff line number Diff line change @@ -23,12 +23,34 @@ jobs:
23
23
shell : bash
24
24
steps :
25
25
{{> stepsSetup }}
26
+ - name : Rebuild deps
27
+ run : npm rebuild
28
+
26
29
- name : Setup Pages
27
30
uses : actions/configure-pages@v1
31
+
32
+ - name : Restore cache
33
+ id : cache-gatsby
34
+ uses : actions/cache/restore@v3
35
+ with :
36
+ key : $\{{ runner.os }}-gatsby-$\{{ github.ref_name }}
37
+ path : |
38
+ public
39
+ .cache
40
+
28
41
- name : Build documentation
29
42
run : npm run build
30
43
env :
31
44
GITHUB_TOKEN : $\{{ secrets.GITHUB_TOKEN }}
45
+
46
+ - name : Save cache
47
+ uses : actions/cache/save@v3
48
+ with :
49
+ key : $\{{ steps.cache-gatsby.outputs.cache-primary-key }}
50
+ path : |
51
+ public
52
+ .cache
53
+
32
54
- name : Upload artifact
33
55
uses : actions/upload-pages-artifact@v1
34
56
with :
You can’t perform that action at this time.
0 commit comments