From 825dc1a56338aa24b2716375dce3240b178883bb Mon Sep 17 00:00:00 2001 From: ztimson Date: Thu, 27 Jul 2023 03:32:41 +0000 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 35aedcc..c089a87 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -10,11 +10,20 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v3 + - name: Create Hash + uses: actions/go-hashfiles@v0.0.1 + id: get-hash + with: + patterns: package-lock.json + - name: Restore Cached Dependencies + uses: actions/cache/restore@v3 + with: + path: node_modules + key: npm-${{ steps.get-hash.outputs.hash }} - name: Install Dependencies run: npm i - name: Cache Dependencies uses: actions/cache@v3 with: - path: | - node_modules - key: npm-${{ hashFiles('package-lock.json') }} + path: node_modules + key: npm-${{ steps.get-hash.outputs.hash }}