docs: cache VitePress in Pages workflow (#5234)

pull/5235/head
T 3 months ago committed by GitHub
parent 1e2cbd9f4b
commit 387fecd6a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -166,6 +166,13 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f
with:
node-version: 24
cache: npm # or pnpm / yarn
- name: Cache VitePress
uses: actions/cache@v4
with:
path: docs/.vitepress/cache
key: ${{ runner.os }}-vitepress-${{ hashFiles('docs/**', 'package-lock.json', 'pnpm-lock.yaml', 'yarn.lock', 'bun.lockb') }}
restore-keys: |
${{ runner.os }}-vitepress-
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies

Loading…
Cancel
Save