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