From dcdbf506f65ebfd079477b79c84b39d45faba5ae Mon Sep 17 00:00:00 2001 From: Evan Yamanishi Date: Sun, 10 Sep 2023 19:23:48 -0400 Subject: [PATCH] ci: use setup-node's built-in caching --- .github/workflows/pages.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 36c2c2c46..f233e12a6 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -4,7 +4,6 @@ on: push: branches: - $default-branch - workflow_dispatch: env: NODE_VERSION: 18 @@ -19,12 +18,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} - - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: "npm" - name: Install 📦 run: npm ci - name: Build Sassdoc 💄 @@ -41,6 +35,7 @@ jobs: uses: actions/upload-pages-artifact@v2 with: path: public + deploy: runs-on: ubuntu-latest needs: build