From a981ee30e248767b39c4e3c9b65c74c4584866d7 Mon Sep 17 00:00:00 2001 From: Freyja Odinthrir Date: Wed, 10 Sep 2025 21:11:17 -0700 Subject: [PATCH] cache npm --- .gitea/workflows/deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index fe56b07..5109568 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -46,6 +46,15 @@ jobs: uses: https://github.com/actions/setup-node@v2 with: node-version: '20' + cache: 'npm' + - + name: Restore node_modules cache + uses: actions/cache@v2 + with: + path: node_modules + key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node_modules - name: Install node dependencies run: npm ci