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 74493b2 commit 5d1d9e9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/


steps:
- uses: actions/checkout@v4

Expand All @@ -27,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 5d1d9e9

Please sign in to comment.