Skip to content

Commit 81e2347

Browse files
committed
different npm caches per project
1 parent f5d8b1d commit 81e2347

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,22 @@ jobs:
318318
repository: 'oceanprotocol/ocean.js'
319319
path: 'ocean.js'
320320
ref: main
321+
- name: Cache ocean.js node_modules
322+
uses: actions/cache@v3
323+
with:
324+
path: ocean.js/node_modules
325+
key: ${{ runner.os }}-oceanjs-${{ hashFiles('ocean.js/package-lock.json') }}
321326
- name: Build ocean-js
322327
working-directory: ${{ github.workspace }}/ocean.js
323328
run: |
324329
npm ci
325330
npm run build
326331
npm link
332+
- name: Cache ocean-cli node_modules
333+
uses: actions/cache@v3
334+
with:
335+
path: ocean-cli/node_modules
336+
key: ${{ runner.os }}-oceancli-${{ hashFiles('ocean-cli/package-lock.json') }}
327337
- name: Setup Ocean CLI
328338
working-directory: ${{ github.workspace }}/ocean-cli
329339
run: |

0 commit comments

Comments
 (0)