Skip to content

Commit

Permalink
ci: 👷 use a single cache
Browse files Browse the repository at this point in the history
this will prevent having multiple caches
  • Loading branch information
nstringham committed Oct 24, 2022
1 parent 286de70 commit cb1218a
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ jobs:
with:
node-version: 16
cache: npm
cache-dependency-path: package-lock.json
cache-dependency-path: |
package-lock.json
client/package-lock.json
functions/package-lock.json
- name: Install Node Dependencies
run: npm ci
Expand All @@ -37,7 +40,10 @@ jobs:
with:
node-version: 16
cache: npm
cache-dependency-path: functions/package-lock.json
cache-dependency-path: |
package-lock.json
client/package-lock.json
functions/package-lock.json
- name: Install Node Dependencies
run: npm --prefix functions ci
Expand All @@ -57,7 +63,10 @@ jobs:
with:
node-version: 16
cache: npm
cache-dependency-path: functions/package-lock.json
cache-dependency-path: |
package-lock.json
client/package-lock.json
functions/package-lock.json
- name: Install Node Dependencies
run: npm --prefix functions ci
Expand All @@ -77,7 +86,10 @@ jobs:
with:
node-version: 16
cache: npm
cache-dependency-path: functions/package-lock.json
cache-dependency-path: |
package-lock.json
client/package-lock.json
functions/package-lock.json
- name: Install Node Dependencies
run: npm --prefix functions ci
Expand All @@ -97,7 +109,10 @@ jobs:
with:
node-version: 16
cache: npm
cache-dependency-path: client/package-lock.json
cache-dependency-path: |
package-lock.json
client/package-lock.json
functions/package-lock.json
- name: Install Node Dependencies
run: npm --prefix client ci
Expand All @@ -117,7 +132,10 @@ jobs:
with:
node-version: 16
cache: npm
cache-dependency-path: client/package-lock.json
cache-dependency-path: |
package-lock.json
client/package-lock.json
functions/package-lock.json
- name: Install Node Dependencies
run: npm --prefix client ci
Expand All @@ -138,6 +156,7 @@ jobs:
node-version: 16
cache: npm
cache-dependency-path: |
package-lock.json
client/package-lock.json
functions/package-lock.json
Expand Down Expand Up @@ -178,6 +197,7 @@ jobs:
node-version: 16
cache: npm
cache-dependency-path: |
package-lock.json
client/package-lock.json
functions/package-lock.json
Expand Down Expand Up @@ -215,6 +235,7 @@ jobs:
node-version: 16
cache: npm
cache-dependency-path: |
package-lock.json
client/package-lock.json
functions/package-lock.json
Expand Down

0 comments on commit cb1218a

Please sign in to comment.