From 902b825b53ae964800274d60da34820b1592a706 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Sat, 26 Dec 2020 14:14:19 -0500 Subject: [PATCH] cache dependencies --- .github/workflows/gh-pages.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8451b1e..2fb598e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -13,6 +13,13 @@ jobs: uses: actions/setup-node@v2.1.2 with: node-version: '12.x' + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - run: npm install - run: npm run generate - name: deploy