Skip to content

Commit

Permalink
Use package-lock for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
cy-by committed Jun 11, 2024
1 parent b261e38 commit 0ff63d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-to-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Persist Eleventy .cache
uses: actions/cache@v3
Expand All @@ -34,6 +36,7 @@ jobs:
key: ${{ runner.os }}-eleventy-fetch-cache

- run: npm install

- run: npm run build

- name: Deploy
Expand Down

0 comments on commit 0ff63d8

Please sign in to comment.