diff --git a/.github/workflows/ci-cache-node.yml b/.github/workflows/ci-cache-node.yml index e6d4346..2ddb208 100644 --- a/.github/workflows/ci-cache-node.yml +++ b/.github/workflows/ci-cache-node.yml @@ -20,13 +20,14 @@ jobs: with: node-version: "20" - name: Restore - uses: actions/cache@v4 + id: cache + uses: actions/cache/restore@v4 with: path: | node_modules key: ci-cache-node-${{ hashFiles('v-poc/ci/cache-node/package-lock.json') }} - name: Install dependencies - if: steps.cache-dependencies.outputs.cache-hit != 'true' + if: steps.cache.outputs.cache-hit != 'true' run: | cd ${{ env.WORKSPACE }} npm install @@ -34,9 +35,9 @@ jobs: run: | cd ${{ env.WORKSPACE }} npm run build - - name: Cache + - name: Save if: success() - uses: actions/cache@v4 + uses: actions/cache/save@v4 with: path: node_modules key: ci-cache-node-${{ hashFiles('v-poc/ci/cache-node/package-lock.json') }}