瀏覽代碼

chore(ci): add windows cache

defclass 4 年之前
父節點
當前提交
ef9aed0d5b
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      .github/workflows/build-desktop-release.yml

+ 7 - 0
.github/workflows/build-desktop-release.yml

@@ -124,6 +124,13 @@ jobs:
         with:
           node-version: 14
 
+      - name: Cache Node Modules
+        uses: actions/cache@v2
+        with:
+          path: |
+            **/node_modules
+          key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
+
       - name: Build/Release Electron app
         run: yarn install --frozen-lockfile && yarn electron:make
         working-directory: ./static