Skip to content

Commit cc9dcc4

Browse files
Update reactjs_ci_cd.yml
1 parent 9c8d8d3 commit cc9dcc4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/reactjs_ci_cd.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@ jobs:
1919
with:
2020
node-version: 20
2121

22-
- name: Install dependencies
23-
run: npm install
22+
- name: Install root dependencies
23+
run: npm install # This will install the dependencies from the root `package.json`
24+
25+
- name: Install frontend dependencies
26+
run: |
27+
cd frontend # Navigate to the frontend directory
28+
npm install # Install the frontend dependencies from `frontend/package.json`
2429
2530
- name: Run ESLint and auto-fix syntax/style errors
2631
run: npx eslint --config ./frontend/eslint.config.js --fix frontend

0 commit comments

Comments
 (0)