diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 1c285b0..924925b 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -17,6 +17,14 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 + - name: Cache npm dependencies + uses: actions/cache@v4 + with: + path: '~/.npm' + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Build project run: npm install && npm run build