From 6b1721c0e511bd0e74abf9bc32cc84b68894e0da Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Tue, 12 Nov 2024 04:08:31 +0100 Subject: [PATCH] Tweak cache --- .github/workflows/smoke-tests.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 047f72840..af0fdc44f 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -21,6 +21,13 @@ jobs: - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - cache: npm + - name: Get npm cache directory + id: npm-cache-dir + shell: bash + run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} + - uses: actions/cache@v4 + with: + key: ${{ matrix.runner }}-node-${{ matrix.node }}-${{ hashFiles('package-lock.json') }} + path: ${{ steps.npm-cache-dir.outputs.dir }} - run: npm ci - run: npm run test-smoke