From 6f94297c8c35c727ca674fbcacb6c8f80e0087dd Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Thu, 28 Nov 2024 13:52:51 +0700 Subject: [PATCH] ci: update actions/setup-node, actions/cache [no ci] --- .github/actions/prepare-environment/action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/prepare-environment/action.yml b/.github/actions/prepare-environment/action.yml index c4fc492465..48f41992ff 100644 --- a/.github/actions/prepare-environment/action.yml +++ b/.github/actions/prepare-environment/action.yml @@ -6,14 +6,14 @@ runs: using: "composite" steps: - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4.1.0 with: node-version-file: '.nvmrc' cache: 'npm' - name: Cache node modules id: node_modules - uses: actions/cache@v3 + uses: actions/cache@v4.1.2 with: path: node_modules key: node-modules-${{ hashFiles('package-lock.json') }} @@ -23,15 +23,15 @@ runs: - name: Cache dependencies id: cache - uses: actions/cache@v3 + uses: actions/cache@v4.1.2 with: path: ~/.cache key: cache-${{ hashFiles('package-lock.json') }} restore-keys: | cache-${{ hashFiles('package-lock.json') }} - cache- + cache- - name: Setup packages shell: bash - if: ${{ steps.cache.outputs.cache-hit != 'true' && steps.node_modules.outputs.cache-hit != 'true' }} + if: ${{ steps.cache.outputs.cache-hit != 'true' || steps.node_modules.outputs.cache-hit != 'true' }} run: npm ci --no-progress