From 268e7339238a0e03bf8cf34e06d2210ef5daab98 Mon Sep 17 00:00:00 2001 From: taroj1205 Date: Wed, 18 Jun 2025 15:04:46 +1200 Subject: [PATCH] fix(ci): upload cache properly --- .../setup-node-pnpm/action.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/composite-actions/setup-node-pnpm/action.yml b/.github/composite-actions/setup-node-pnpm/action.yml index a15669c..a9ca418 100644 --- a/.github/composite-actions/setup-node-pnpm/action.yml +++ b/.github/composite-actions/setup-node-pnpm/action.yml @@ -22,15 +22,6 @@ runs: key: ${{ inputs.node-modules-cache-key }} lookup-only: true - - name: Restore node_modules cache - if: steps.check-node-modules-cache.outputs.cache-hit != 'true' - uses: actions/cache@v4 - with: - path: | - node_modules - */node_modules - key: ${{ inputs.node-modules-cache-key }} - - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -47,3 +38,12 @@ runs: if: steps.check-node-modules-cache.outputs.cache-hit != 'true' shell: bash run: pnpm install --frozen-lockfile + + - name: Upload node_modules cache + if: steps.check-node-modules-cache.outputs.cache-hit != 'true' + uses: actions/cache@v4 + with: + path: | + node_modules + */node_modules + key: ${{ inputs.node-modules-cache-key }}