Skip to content

Commit 76adb75

Browse files
PNPM Setup
1 parent c30b9d4 commit 76adb75

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/check-linting-and-format.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,28 @@ jobs:
1414
run-linters:
1515
name: Run linters
1616
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
node-version: [18]
1720

1821
steps:
1922
- name: Check out Git repository
2023
uses: actions/checkout@v2
2124

22-
- name: Set up Node.js
23-
uses: actions/setup-node@v1
25+
- name: Set up pnpm
26+
uses: pnpm/action-setup@v2
2427
with:
25-
node-version: 18
28+
version: 8
29+
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
cache: 'pnpm'
2635

2736
# ESLint and Prettier must be in `package.json`
28-
- name: Install Node.js dependencies
29-
run: npm ci
37+
- name: Install dependencies
38+
run: pnpm install
3039

3140
- name: Run linters
3241
uses: wearerequired/lint-action@v2

0 commit comments

Comments
 (0)