From 47f7ebfd68f3966e90c8834e5ec687dbc1a15998 Mon Sep 17 00:00:00 2001 From: Tom Foster Date: Mon, 22 Sep 2025 16:27:50 +0100 Subject: [PATCH] fix: Use node_version in npm cache key for wrangler installation Replace hashFiles('**/package-lock.json') with node_version since wrangler is installed via npm without a lockfile to hash. Removes trailing dash from cache keys and ensures npm dependencies are regenerated when Node.js version changes. --- .forgejo/workflows/documentation.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.forgejo/workflows/documentation.yml b/.forgejo/workflows/documentation.yml index b3da4c2f..dd46c001 100644 --- a/.forgejo/workflows/documentation.yml +++ b/.forgejo/workflows/documentation.yml @@ -63,9 +63,7 @@ jobs: uses: actions/cache@v3 with: path: ~/.npm - key: continuwuity-${{ steps.runner-env.outputs.slug }}-${{ steps.runner-env.outputs.arch }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - continuwuity-${{ steps.runner-env.outputs.slug }}-${{ steps.runner-env.outputs.arch }}-node- + key: continuwuity-${{ steps.runner-env.outputs.slug }}-${{ steps.runner-env.outputs.arch }}-node-${{ steps.runner-env.outputs.node_version }} - name: Install dependencies run: npm install --save-dev wrangler@latest