From 4a50a70c0d16dc8dac9542635c8e84eb357c70fe Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 7 Mar 2024 07:57:06 -0600 Subject: [PATCH] GitHub workflow cache key --- .github/workflows/deploy-pages.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index ff16f7a..898a472 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -24,9 +24,15 @@ jobs: - name: Cache dependencies uses: actions/cache@v3 with: - path: | - ~/.npm - ./.cache + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} + + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ./.cache + key: ${{ runner.os }}-eleventy-fetch-cache + - run: npm install - run: npm run build-ghpages