Skip to content

Commit

Permalink
Speed up Github workflow with npm cache
Browse files Browse the repository at this point in the history
  • Loading branch information
albig committed Dec 2, 2024
1 parent 4690778 commit 8e1e6c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache .npm directory
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install npm packages
run: npm ci

Expand Down

0 comments on commit 8e1e6c6

Please sign in to comment.