Skip to content

Commit

Permalink
feat(ci): cache node_modules to avoid repeated installing
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasan1999 committed Sep 13, 2024
1 parent d4185c1 commit f57c44e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
- name: Install dependencies
run: npm install

- name: Cache dependencies
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
build:
runs-on: ubuntu-latest
needs: prepare
Expand Down

0 comments on commit f57c44e

Please sign in to comment.