Skip to content

Commit 78f1da8

Browse files
authored
Update build.yml
1 parent 3ec9605 commit 78f1da8

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,24 @@ jobs:
2222
uses: actions/setup-node@v4
2323
with:
2424
node-version: 18
25-
cache: 'npm'
25+
cache: 'pnpm'
26+
27+
- name: Enable corepack and install pnpm
28+
run: |
29+
corepack enable
30+
corepack prepare pnpm@latest --activate
31+
32+
- name: Verify pnpm installation
33+
run: pnpm --version
2634

2735
- name: Install Dependencies
28-
run: npm install --legacy-peer-deps
36+
run: pnpm install --frozen-lockfile
2937

3038
- name: Run Linting
31-
run: npm run lint
39+
run: pnpm run lint
40+
41+
- name: Type Check
42+
run: pnpm exec tsc --noEmit
3243

3344
- name: Build Next.js App
34-
run: npm run build
45+
run: pnpm run build

0 commit comments

Comments
 (0)