Skip to content

Commit a0c447a

Browse files
authoredJul 1, 2024··
ci(setup-node): fix steps order (#29965)
1 parent 174b1bf commit a0c447a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎.github/actions/setup-node/action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ runs:
4747
(steps.node-modules-restore.outputs.cache-hit == 'true') && 'true' || ''
4848
}}' >> "$GITHUB_ENV"
4949
50-
- name: Calculate `PNPM_STORE`
51-
shell: bash
52-
run: |
53-
echo "PNPM_STORE=$(pnpm store path)" >> "$GITHUB_ENV"
54-
5550
- name: Setup pnpm
5651
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
5752
with:
@@ -62,6 +57,11 @@ runs:
6257
with:
6358
node-version: ${{ inputs.node-version }}
6459

60+
- name: Calculate `PNPM_STORE`
61+
shell: bash
62+
run: |
63+
echo "PNPM_STORE=$(pnpm store path)" >> "$GITHUB_ENV"
64+
6565
- name: Cache and restore `pnpm store`
6666
if: env.CACHE_HIT != 'true'
6767
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2

0 commit comments

Comments
 (0)
Please sign in to comment.