From 0a44adb265a00ed2cd375cccfe28cb9cb5ceb5c5 Mon Sep 17 00:00:00 2001 From: Nahda Fauziyah Zahra Date: Wed, 11 Dec 2024 17:05:25 +0700 Subject: [PATCH] fix: fix frontend cache --- frontend/tools/pnpm/action.yaml | 4 ++-- frontend/tools/yarn/action.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/tools/pnpm/action.yaml b/frontend/tools/pnpm/action.yaml index f626e884..16fa0dc2 100644 --- a/frontend/tools/pnpm/action.yaml +++ b/frontend/tools/pnpm/action.yaml @@ -36,7 +36,7 @@ runs: path: /runner/.pnpm-store key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | - ${{ runner.os }}-pnpm- + ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Setup pnpm if: "${{ inputs.pnpm_version != 'latest' }}" @@ -66,4 +66,4 @@ runs: ${{ steps.path.outputs.cache-path }} key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | - ${{ runner.os }}-nextjs- + ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }} diff --git a/frontend/tools/yarn/action.yaml b/frontend/tools/yarn/action.yaml index 8a5a63ad..b882af90 100644 --- a/frontend/tools/yarn/action.yaml +++ b/frontend/tools/yarn/action.yaml @@ -36,7 +36,7 @@ runs: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-yarn- + ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - name: Set cache path Next.js if: "${{ inputs.using_nextjs == 'true' }}" @@ -57,4 +57,4 @@ runs: path: ${{ steps.path.outputs.cache-path }} key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-nextjs- + ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}