From 3a854c8d27d030f96089b6d6d100fc1f8fae8788 Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Wed, 18 Feb 2026 14:41:58 +0200 Subject: [PATCH] / --- .gitea/workflows/windows.yaml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/windows.yaml b/.gitea/workflows/windows.yaml index 0af8108..6c4a883 100644 --- a/.gitea/workflows/windows.yaml +++ b/.gitea/workflows/windows.yaml @@ -17,16 +17,6 @@ jobs: with: node-version: '24' - # Кэш для node_modules - - name: Cache node_modules - uses: actions/cache@v5 - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node- - if-no-files-found: ignore - # Кэш для electron-builder - name: Cache electron-builder uses: actions/cache@v5 @@ -39,8 +29,14 @@ jobs: ${{ runner.os }}-electron-builder- if-no-files-found: ignore + - name: NPM offline setup + shell: powershell + run: | + npm config set cache "$env:LOCALAPPDATA\npm-cache" --global + npm config set prefer-offline true --global + - name: Install npm dependencies - run: npm install + run: npm install --prefer-offline --no-audit --no-fund - name: Build the application run: npm run kernel:win