From ee68f5c7ece02f7b68a7d3b866188f4d7f183c71 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Fri, 22 Sep 2023 23:02:32 +0200 Subject: [PATCH] Remove custom cache from CI actions/setup-node already does that for us --- .github/workflows/lint.yaml | 13 ------------- .github/workflows/test.yaml | 13 ------------- 2 files changed, 26 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index a86643e4..db2e29bd 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -22,19 +22,6 @@ jobs: with: node-version: 20 - - name: Get npm cache directory path - id: npm-cache-dir-path - run: echo "::set-output name=dir::$(npm config get cache)" - - - name: Cache node_modules - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 - id: npm-cache - with: - path: ${{ steps.npm-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-npm- - - name: Install dependencies run: npm ci --no-audit diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a315abbf..dc69054b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,19 +22,6 @@ jobs: with: node-version: 20 - - name: Get npm cache directory path - id: npm-cache-dir-path - run: echo "::set-output name=dir::$(npm config get cache)" - - - name: Cache node_modules - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 - id: npm-cache - with: - path: ${{ steps.npm-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-npm- - - name: Install dependencies run: npm ci --no-audit