Skip to content

Commit 203c95c

Browse files
authored
fix(actions): pnpm before setup node
1 parent 628f367 commit 203c95c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

actions/setup-environment/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ runs:
4949
fetch-depth: ${{ inputs.fetch-depth }}
5050
token: ${{ inputs.token }}
5151

52+
- name: Setup pnpm
53+
if: inputs.pnpm == 'true'
54+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
55+
5256
- name: Setup Node.js (with version file)
5357
if: inputs.use-version-file == 'true'
5458
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
@@ -65,10 +69,6 @@ runs:
6569
registry-url: ${{ inputs.registry-url }}
6670
cache: ${{ inputs.pnpm == 'true' && 'pnpm' || 'npm' }}
6771

68-
- name: Setup pnpm
69-
if: inputs.pnpm == 'true'
70-
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
71-
7272
- name: Install dependencies with pnpm
7373
if: inputs.pnpm == 'true'
7474
shell: bash

0 commit comments

Comments
 (0)