Skip to content

Commit 6d0f656

Browse files
authored
fix ci
1 parent 420d6db commit 6d0f656

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/frontend-ci.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Frontend CI
2-
32
on:
43
push:
54
branches: ["main", "frontend"]
@@ -9,39 +8,32 @@ on:
98
branches: ["main", "frontend"]
109
paths:
1110
- "frontend/**"
12-
1311
jobs:
1412
build-and-check:
1513
name: Frontend Build & Format Check
1614
runs-on: ubuntu-latest
1715
defaults:
1816
run:
1917
working-directory: ./frontend
20-
2118
steps:
2219
- name: Checkout repository
2320
uses: actions/checkout@v4
24-
25-
- name: Install pnpm
26-
uses: pnpm/action-setup@v4
27-
with:
28-
version: 9
29-
21+
3022
- name: Setup Node.js
3123
uses: actions/setup-node@v4
3224
with:
3325
node-version: "20"
34-
cache: "pnpm"
35-
cache-dependency-path: frontend/pnpm-lock.yaml
36-
26+
cache: "npm"
27+
cache-dependency-path: "./frontend/package-lock.json"
28+
3729
- name: Install dependencies
38-
run: pnpm install
39-
30+
run: npm ci
31+
4032
- name: Format Check (Lint)
41-
run: pnpm lint --max-warnings=0
33+
run: npm run lint -- --max-warnings=0
4234
# Runs ESLint to verify code quality and formatting rules defined in eslint config.
4335
# This satisfies the "Format Check" requirement.
44-
36+
4537
- name: Build Check
46-
run: pnpm build
38+
run: npm run build
4739
# Verification that the Next.js application builds successfully.

0 commit comments

Comments
 (0)