Skip to content

Commit

Permalink
ci: update actions/setup-node, actions/cache [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakutoc committed Dec 4, 2024
1 parent c194b58 commit 6f94297
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/actions/prepare-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -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

0 comments on commit 6f94297

Please sign in to comment.