From da568b825febc53dd9326657d781c7c016c4a462 Mon Sep 17 00:00:00 2001 From: Pascal Syma Date: Sun, 26 May 2024 23:30:21 +0200 Subject: [PATCH] Add npm caching --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5151fdc..830909e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,7 @@ name: Deploy static content to Pages on: push: pull_request: - branches: ['main'] + branches: [ 'main' ] workflow_dispatch: @@ -28,6 +28,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + cache: 'npm' - run: npm install --frozen-lockfile - name: Build project run: npm run check-all @@ -49,6 +50,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + cache: 'npm' - run: npm install --frozen-lockfile - name: Build project run: npm run build-only