From 387fecd6a55d82ee1a65a1e4168f4a974da8e1d1 Mon Sep 17 00:00:00 2001 From: T <6601329+cookesan@users.noreply.github.com> Date: Sat, 27 Jun 2026 18:07:39 -0300 Subject: [PATCH] docs: cache VitePress in Pages workflow (#5234) --- docs/en/guide/deploy.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/en/guide/deploy.md b/docs/en/guide/deploy.md index 9c01d0ee..b54f8fa4 100644 --- a/docs/en/guide/deploy.md +++ b/docs/en/guide/deploy.md @@ -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