File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 key : astro-dev-en-${{ github.sha }}
2525 restore-keys : astro-dev-en-
2626
27+ - name : Cache Vite deps
28+ uses : actions/cache@v4
29+ with :
30+ path : .vite
31+ key : vite-${{ hashFiles('package-lock.json', 'astro.config.mjs') }}
32+ restore-keys : vite-
33+
2734 - run : npm ci
2835 env :
2936 PUPPETEER_SKIP_DOWNLOAD : ' 1'
6774 key : astro-dev-${{ matrix.locale }}-${{ github.sha }}
6875 restore-keys : astro-dev-${{ matrix.locale }}-
6976
77+ - name : Cache Vite deps
78+ uses : actions/cache@v4
79+ with :
80+ path : .vite
81+ key : vite-${{ hashFiles('package-lock.json', 'astro.config.mjs') }}
82+ restore-keys : vite-
83+
7084 - run : npm ci
7185 env :
7286 PUPPETEER_SKIP_DOWNLOAD : ' 1'
Original file line number Diff line number Diff line change 7979 key : astro-en-${{ github.sha }}
8080 restore-keys : astro-en-
8181
82+ - name : Cache Vite deps
83+ uses : actions/cache@v4
84+ with :
85+ path : .vite
86+ key : vite-${{ hashFiles('package-lock.json', 'astro.config.mjs') }}
87+ restore-keys : vite-
88+
8289 - run : npm ci
8390 env :
8491 PUPPETEER_SKIP_DOWNLOAD : ' 1'
@@ -123,6 +130,13 @@ jobs:
123130 key : astro-${{ matrix.locale }}-${{ github.sha }}
124131 restore-keys : astro-${{ matrix.locale }}-
125132
133+ - name : Cache Vite deps
134+ uses : actions/cache@v4
135+ with :
136+ path : .vite
137+ key : vite-${{ hashFiles('package-lock.json', 'astro.config.mjs') }}
138+ restore-keys : vite-
139+
126140 - run : npm ci
127141 env :
128142 PUPPETEER_SKIP_DOWNLOAD : ' 1'
@@ -217,6 +231,13 @@ jobs:
217231 key : astro-${{ matrix.locale }}-${{ github.sha }}
218232 restore-keys : astro-${{ matrix.locale }}-
219233
234+ - name : Cache Vite deps
235+ uses : actions/cache@v4
236+ with :
237+ path : .vite
238+ key : vite-${{ hashFiles('package-lock.json', 'astro.config.mjs') }}
239+ restore-keys : vite-
240+
220241 - run : npm ci
221242 env :
222243 PUPPETEER_SKIP_DOWNLOAD : ' 1'
Original file line number Diff line number Diff line change 88# Generated files
99.docusaurus
1010.cache-loader
11+ .vite
1112
1213# Misc
1314.DS_Store
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export default defineConfig({
2727 inlineStylesheets : 'never' ,
2828 } ,
2929 vite : {
30+ cacheDir : '.vite' ,
3031 plugins : [
3132 tailwindcss ( ) ,
3233 ] ,
You can’t perform that action at this time.
0 commit comments