Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
uparkalau authored Aug 8, 2024
1 parent f50055f commit cb55f7d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,21 @@ jobs:

- name: Install dependencies for backend
working-directory: ./backend
run: npm install
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Install dependencies for frontend
working-directory: ./frontend
run: npm install
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Build backend
working-directory: ./backend
Expand Down

0 comments on commit cb55f7d

Please sign in to comment.