Skip to content

Commit

Permalink
chore(ci): update caching strategy in GitHub Actions workflow for Nod…
Browse files Browse the repository at this point in the history
…e modules
  • Loading branch information
MoinJulian committed Nov 21, 2024
1 parent a3abf51 commit 50020b0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Cache Node Modules
- uses: actions/checkout@v2
- name: Cache Node Modules
id: realgolfgames-logs-cache-node-modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
if: steps.realgolfgames-logs-cache-node-modules.outputs.cache-hit != 'true'
run: npm install

0 comments on commit 50020b0

Please sign in to comment.