Skip to content

Commit 6fc23fe

Browse files
committed
fix(ci): setup pnpm before node to enable cache
1 parent fdc14c9 commit 6fc23fe

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ jobs:
7171
with:
7272
persist-credentials: false
7373

74+
- name: Setup pnpm
75+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
76+
7477
- name: Setup Node.js
7578
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
7679
with:
7780
node-version-file: .node-version
7881
cache: 'pnpm'
7982
cache-dependency-path: 'pnpm-lock.yaml'
8083

81-
- name: Setup pnpm
82-
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
83-
8484
- name: Install dependencies
8585
run: pnpm install --frozen-lockfile
8686

@@ -100,16 +100,16 @@ jobs:
100100
with:
101101
persist-credentials: false
102102

103+
- name: Setup pnpm
104+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
105+
103106
- name: Setup Node.js
104107
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
105108
with:
106109
node-version-file: .node-version
107110
cache: 'pnpm'
108111
cache-dependency-path: 'pnpm-lock.yaml'
109112

110-
- name: Setup pnpm
111-
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
112-
113113
- name: Install dependencies
114114
run: pnpm install --frozen-lockfile
115115

@@ -136,16 +136,16 @@ jobs:
136136
with:
137137
persist-credentials: false
138138

139+
- name: Setup pnpm
140+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
141+
139142
- name: Setup Node.js
140143
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
141144
with:
142145
node-version: ${{ matrix.node-version }}
143146
cache: 'pnpm'
144147
cache-dependency-path: 'pnpm-lock.yaml'
145148

146-
- name: Setup pnpm
147-
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
148-
149149
- name: Install dependencies
150150
run: pnpm install --frozen-lockfile
151151

@@ -177,16 +177,16 @@ jobs:
177177
with:
178178
persist-credentials: false
179179

180+
- name: Setup pnpm
181+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
182+
180183
- name: Setup Node.js
181184
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
182185
with:
183186
node-version: ${{ matrix.node-version }}
184187
cache: 'pnpm'
185188
cache-dependency-path: 'pnpm-lock.yaml'
186189

187-
- name: Setup pnpm
188-
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
189-
190190
- name: Install dependencies
191191
run: pnpm install --frozen-lockfile
192192

0 commit comments

Comments
 (0)