From d2b19c14d7b4fa0af8ee2ef61def9f2cdce90c80 Mon Sep 17 00:00:00 2001 From: "Tomoya Matsuura(MacBookPro)" Date: Mon, 5 Feb 2024 01:53:16 +0900 Subject: [PATCH] add cache again --- .gitea/workflows/ci.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index bf8af8bc..8248e104 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -19,6 +19,18 @@ jobs: with: node-version: 'latest' cache: 'npm' + - uses: actions/go-hashfiles@v0.0.1 + id: get-hash + with: + patterns: |- + **/package-lock.json + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ steps.get-hash.outputs.hash }} + restore-keys: | + ${{ runner.os }}-node- - run: npm i - run: npx quartz build - name: Create private key