From 55e8202b2b8c3503e643dff1e09c6204dbacf2c8 Mon Sep 17 00:00:00 2001 From: ztimson Date: Thu, 27 Jul 2023 01:53:35 +0000 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index f5c4d3d..9484f75 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -12,17 +12,22 @@ jobs: uses: actions/checkout@v3 - name: Install Dependencies run: npm i - - name: Upload Artifacts + - name: Cache Dependencies if: success() - uses: actions/upload-artifact@v1 + uses: actions/cache@v3 with: - name: node_modules path: node_modules + key: ${{ hashFile('package-lock.json') }} Build_Node: runs-on: Docker container: image: node:16 steps: + - name: Restore Cached Dependencies + uses: actions/cache/restore@v3 + with: + path: node_modules + key: ${{ hashFile('package-lock.json') }} - name: Build - - run: npm run build \ No newline at end of file + run: npm run build