From 763b618ab243f92c33590c851dcde6c0c38c7d60 Mon Sep 17 00:00:00 2001 From: Arthur Geron <3487334+arthurgeron@users.noreply.github.com> Date: Sat, 27 Jul 2024 14:45:40 -0300 Subject: [PATCH 1/2] feat: cache pnpm store and node modules --- setups/node/action.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setups/node/action.yaml b/setups/node/action.yaml index 04698e0..665fa6b 100644 --- a/setups/node/action.yaml +++ b/setups/node/action.yaml @@ -14,7 +14,10 @@ runs: - name: Cache PNPM modules uses: actions/cache@v3 with: - path: ~/.local/share/pnpm/store/v3 + path: | + ~/.local/share/pnpm/store/v3 + ~/.pnpm-store + **/node_modules key: ${{ runner.os }}-node-${{ inputs.node-version }}-pnpm-${{ inputs.pnpm-version }}-lock-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm From 39d9e49e6052e167873b7875593f49b4affe7a88 Mon Sep 17 00:00:00 2001 From: Arthur Geron <3487334+arthurgeron@users.noreply.github.com> Date: Sat, 27 Jul 2024 14:47:57 -0300 Subject: [PATCH 2/2] fix: cache restore key --- setups/node/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setups/node/action.yaml b/setups/node/action.yaml index 665fa6b..72ed67d 100644 --- a/setups/node/action.yaml +++ b/setups/node/action.yaml @@ -20,7 +20,7 @@ runs: **/node_modules key: ${{ runner.os }}-node-${{ inputs.node-version }}-pnpm-${{ inputs.pnpm-version }}-lock-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | - ${{ runner.os }}-pnpm + ${{ runner.os }}-node-${{ inputs.node-version }}-pnpm-${{ inputs.pnpm-version }}-lock- - name: Setup Node.js uses: actions/setup-node@v3