From 54abb81a07c0fb932cc6fe2c2bb40d0758f2a69b Mon Sep 17 00:00:00 2001 From: BeauTroll <-> Date: Mon, 19 Jan 2026 19:00:08 +0100 Subject: [PATCH] add pnpm caching --- .gitea/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e27057b..1a2eb6b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -46,6 +46,18 @@ jobs: node-version: '20' cache: 'pnpm' + - name: Get pnpm store directory + shell: bash + run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - name: Cache pnpm store + uses: actions/cache@v4 + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + - name: Install dependencies run: pnpm install --frozen-lockfile