From ea35c85e698f96086e275ac362612f6ffac581a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Harb=C3=B6ck?= Date: Sun, 8 Sep 2024 23:05:52 +0200 Subject: [PATCH] Simplify and fix CI caching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/actions/setup-node#caching-global-packages-data Signed-off-by: Patrick Harböck --- .github/workflows/nodejs.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 3cbf5d8..05832cd 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -22,20 +22,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - - name: Get yarn cache directory path - # Docs: https://github.com/actions/cache/blob/master/examples.md#node---yarn - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v4 - # Docs: https://github.com/actions/cache/blob/master/examples.md#node---yarn - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + cache: yarn - run: yarn --frozen-lockfile --non-interactive --no-progress --check-files