From 562de0216b0edd12d22468590041c1b1e61ff739 Mon Sep 17 00:00:00 2001 From: taroj1205 Date: Wed, 18 Jun 2025 14:20:06 +1200 Subject: [PATCH] fix(ci): fix ci node_modules cache handling --- .github/composite-actions/restore-cache/action.yml | 6 ++++-- .github/composite-actions/setup-node-pnpm/action.yml | 11 +---------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/composite-actions/restore-cache/action.yml b/.github/composite-actions/restore-cache/action.yml index 8c5ae56..82dc79d 100644 --- a/.github/composite-actions/restore-cache/action.yml +++ b/.github/composite-actions/restore-cache/action.yml @@ -17,7 +17,8 @@ runs: with: path: .turbo key: ${{ inputs.turbo-cache-key }} - lookup-only: true + restore-keys: | + ${{ runner.os }}-turbo- - name: Restore node_modules cache uses: actions/cache@v4 @@ -26,7 +27,8 @@ runs: node_modules */node_modules key: ${{ inputs.node-modules-cache-key }} - lookup-only: true + restore-keys: | + ${{ runner.os }}-node-modules- - name: Setup Node.js uses: actions/setup-node@v4 diff --git a/.github/composite-actions/setup-node-pnpm/action.yml b/.github/composite-actions/setup-node-pnpm/action.yml index 854bfd3..663cadd 100644 --- a/.github/composite-actions/setup-node-pnpm/action.yml +++ b/.github/composite-actions/setup-node-pnpm/action.yml @@ -12,14 +12,6 @@ inputs: runs: using: "composite" steps: - - name: Restore Turborepo cache - uses: actions/cache@v4 - with: - path: .turbo - key: ${{ inputs.turbo-cache-key }} - restore-keys: | - ${{ runner.os }}-turbo- - - name: Restore node_modules cache id: node-modules-cache uses: actions/cache@v4 @@ -28,8 +20,7 @@ runs: node_modules */node_modules key: ${{ inputs.node-modules-cache-key }} - restore-keys: | - ${{ runner.os }}-node-modules- + lookup-only: true - name: Setup Node.js uses: actions/setup-node@v4