Skip to content

Commit fc522bf

Browse files
committed
ci: update pnpm version in workflows to use matrix variable
1 parent 6e1d34a commit fc522bf

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/npm-audit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
strategy:
3535
matrix:
3636
node-version: [lts/*]
37+
pnpm-version: [latest]
3738
steps:
3839
- name: ⬇️ Checkout
3940
id: checkout
@@ -49,7 +50,7 @@ jobs:
4950
id: setup-pnpm
5051
uses: pnpm/[email protected]
5152
with:
52-
version: latest
53+
version: ${{ matrix.pnpm-version }}
5354
run_install: false
5455

5556
- name: 🧩 Install Dependencies

.github/workflows/pr-builder.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
node-version: [lts/*]
23+
pnpm-version: [latest]
2324
steps:
2425
- name: ⬇️ Checkout
2526
id: checkout
@@ -44,7 +45,7 @@ jobs:
4445
id: setup-pnpm
4546
uses: pnpm/[email protected]
4647
with:
47-
version: latest
48+
version: ${{ matrix.pnpm-version }}
4849
run_install: false
4950

5051
- name: 🎈 Get pnpm store directory
@@ -98,7 +99,7 @@ jobs:
9899
- name: 🥡 Setup pnpm
99100
uses: pnpm/[email protected]
100101
with:
101-
version: latest
102+
version: ${{ matrix.pnpm-version }}
102103
run_install: false
103104

104105
- name: 🎈 Get pnpm store directory
@@ -118,7 +119,7 @@ jobs:
118119
- name: 🧩 Install Dependencies
119120
id: install-dependencies
120121
run: pnpm install
121-
122+
122123
- name: 🏗️ Build
123124
id: build
124125
run: pnpm build
@@ -150,7 +151,7 @@ jobs:
150151
- name: 🥡 Setup pnpm
151152
uses: pnpm/[email protected]
152153
with:
153-
version: latest
154+
version: ${{ matrix.pnpm-version }}
154155
run_install: false
155156

156157
- name: 🎈 Get pnpm store directory
@@ -170,7 +171,7 @@ jobs:
170171
- name: 🧩 Install Dependencies
171172
id: install-dependencies
172173
run: pnpm install
173-
174+
174175
- name: 🏗️ Build
175176
id: build
176177
run: pnpm build
@@ -200,7 +201,7 @@ jobs:
200201
- name: 🥡 Setup pnpm
201202
uses: pnpm/[email protected]
202203
with:
203-
version: latest
204+
version: ${{ matrix.pnpm-version }}
204205
run_install: false
205206

206207
- name: 🎈 Get pnpm store directory

0 commit comments

Comments
 (0)