From 29755cd0d451b3dffedd0dc0a554d08ca12e5dd5 Mon Sep 17 00:00:00 2001 From: jojomatik Date: Sun, 31 Dec 2023 14:22:52 +0100 Subject: [PATCH] ci: use `package.json` as hash file --- .github/workflows/build.yml | 2 +- .github/workflows/publish.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ecd397..32dd1b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: cache-name: cache-node-modules with: path: node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }} - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 481f999..c5d9749 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ jobs: cache-name: cache-node-modules with: path: node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }} - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile @@ -50,7 +50,7 @@ jobs: cache-name: cache-node-modules with: path: node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }} - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile