Skip to content

Commit

Permalink
fix: clean install
Browse files Browse the repository at this point in the history
  • Loading branch information
HlisTilen committed Nov 18, 2024
1 parent bbc2168 commit 24fca99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install dependencies # Namestitev odvisnosti
run: |
cd 02_DevOps_Testing/primer/backend
npm install
npm ci
- name: Upload backend artifacts # Naložitev artefaktov za backend
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Install dependencies # Namestitev odvisnosti
run: |
cd 02_DevOps_Testing/primer/backend
npm install
npm ci
# ⚠️ Cache hit:
# - Če je cache hit, npm install preveri obstoječe odvisnosti in ne namešča ničesar dodatnega.
# - Če je cache miss, npm install ponovno ustvari mapo node_modules.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install dependencies # Namestitev odvisnosti
run: |
cd 02_DevOps_Testing/primer/frontend
npm install
npm ci
# Če node_modules že obstaja, npm samo preveri skladnost z datotekama package.json in package-lock.json.

- name: Build application # Gradnja aplikacije
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Install dependencies
run: |
cd 02_DevOps_Testing/primer/frontend
npm install
npm ci
# ⚠️ KAKO PREPOZNATI, DA JE CACHE USPEŠEN?
# - Če je cache hit, npm install ne namešča novih odvisnosti, ampak preveri obstoječe.
# - Če je cache miss, npm install ponovno ustvari mapo node_modules.
Expand Down

0 comments on commit 24fca99

Please sign in to comment.