From e100fedb139ab5cd416aa6edbb6d893d54fac8b6 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 27 Nov 2023 10:53:32 +0100 Subject: [PATCH] cache earlier --- .github/workflows/foreman.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/foreman.yml b/.github/workflows/foreman.yml index 6f2ed5be3752..5b5ef789e74a 100644 --- a/.github/workflows/foreman.yml +++ b/.github/workflows/foreman.yml @@ -66,17 +66,17 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - name: Generate package-lock.json - run: npm install --package-lock-only --no-audit --loglevel verbose - name: Setup Cache uses: actions/cache@v3 env: cache-name: cache-node-modules with: path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}- + - name: Generate package-lock.json + run: npm install --package-lock-only --no-audit --loglevel verbose - name: Install NPM packages run: npm ci --no-audit --loglevel verbose - name: Prepare test env