From a0c447a82b64dc96e24da51fb46a070e4d0282d5 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Mon, 1 Jul 2024 15:37:43 +0200 Subject: [PATCH] ci(setup-node): fix steps order (#29965) --- .github/actions/setup-node/action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index 09108b4c65bbe0..bceeb0cc34288b 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