From da96cb507d0faa7229b3b007d455ef2705aae61c Mon Sep 17 00:00:00 2001 From: Stuart Knightley Date: Tue, 14 Jun 2022 17:18:16 -0700 Subject: [PATCH] Update actions/cache to v3 --- .github/workflows/pr.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index f2502045..44a22a6f 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -18,19 +18,15 @@ jobs: cache: 'npm' - name: Cache Node modules - uses: actions/cache@v2 - env: - cache-name: cache-node-modules + uses: actions/cache@v3 + id: npm-cache with: - # npm cache files are stored in `~/.npm` on Linux/macOS path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- + ${{ runner.os }}-node- - - name: "Install dependencies" + - name: Install dependencies run: | npm install sudo npx playwright install-deps