diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml
index 09108b4c65bbe0d5643a99dddcc0d1dc94bdd837..bceeb0cc34288bc03f46df7ebfd72047137f0fdb 100644
--- a/.github/actions/setup-node/action.yml
+++ b/.github/actions/setup-node/action.yml
@@ -47,11 +47,6 @@ runs:
           (steps.node-modules-restore.outputs.cache-hit == 'true') && 'true' || ''
         }}' >> "$GITHUB_ENV"
 
-    - name: Calculate `PNPM_STORE`
-      shell: bash
-      run: |
-        echo "PNPM_STORE=$(pnpm store path)" >> "$GITHUB_ENV"
-
     - name: Setup pnpm
       uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
       with:
@@ -62,6 +57,11 @@ runs:
       with:
         node-version: ${{ inputs.node-version }}
 
+    - name: Calculate `PNPM_STORE`
+      shell: bash
+      run: |
+        echo "PNPM_STORE=$(pnpm store path)" >> "$GITHUB_ENV"
+
     - name: Cache and restore `pnpm store`
       if: env.CACHE_HIT != 'true'
       uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2