Skip to content

Commit aaf0a76

Browse files
refactor: simplify CI workflow by changing directory for dependency installation
1 parent 39dadbc commit aaf0a76

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,10 @@ jobs:
1919
node-version: 16 # Or your desired Node.js version
2020

2121
- name: Install backend dependencies
22-
run: npm install --prefix backend
22+
run: cd backend && npm install && cd ..
2323

2424
- name: Install frontend dependencies
25-
run: npm install --prefix frontend
26-
27-
28-
- name: Build backend
29-
run: npm run build --prefix backend
30-
31-
- name: Build frontend
32-
run: npm run build --prefix frontend
25+
run: cd frontend && npm install && cd ..
3326

3427
- name: Run backend tests
3528
run: npm test --prefix backend

0 commit comments

Comments
 (0)