Unverified Commit ec20150b authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[ci] Stop using restore-keys for package manager stores (#87209)

parent f754a00c
...@@ -108,10 +108,8 @@ jobs: ...@@ -108,10 +108,8 @@ jobs:
id: cache-pnpm-store id: cache-pnpm-store
with: with:
path: ${{ steps.get-store-path.outputs.STORE_PATH }} path: ${{ steps.get-store-path.outputs.STORE_PATH }}
key: pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} key: pnpm-store-v2-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: | # Do not use restore-keys since it leads to indefinite growth of the cache.
pnpm-store-
pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
- run: pnpm install - run: pnpm install
......
...@@ -65,10 +65,8 @@ jobs: ...@@ -65,10 +65,8 @@ jobs:
id: cache-pnpm-store id: cache-pnpm-store
with: with:
path: ${{ steps.get-store-path.outputs.STORE_PATH }} path: ${{ steps.get-store-path.outputs.STORE_PATH }}
key: pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} key: pnpm-store-v2-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: | # Do not use restore-keys since it leads to indefinite growth of the cache.
pnpm-store-
pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
- run: pnpm install - run: pnpm install
......
...@@ -79,9 +79,8 @@ jobs: ...@@ -79,9 +79,8 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: ~/.pnpm-store path: ~/.pnpm-store
key: ${{ runner.os }}-${{ runner.arch }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} key: ${{ runner.os }}-${{ runner.arch }}-pnpm-v2-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: | # Do not use restore-keys since it leads to indefinite growth of the cache.
${{ runner.os }}-${{ runner.arch }}-pnpm-
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
......
...@@ -97,10 +97,8 @@ jobs: ...@@ -97,10 +97,8 @@ jobs:
id: cache-pnpm-store id: cache-pnpm-store
with: with:
path: ${{ steps.get-store-path.outputs.STORE_PATH }} path: ${{ steps.get-store-path.outputs.STORE_PATH }}
key: pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} key: pnpm-store-v2-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: | # Do not use restore-keys since it leads to indefinite growth of the cache.
pnpm-store-
pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
- run: pnpm install - run: pnpm install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment