Kaynağa Gözat

chore: update workflows

Vben 4 yıl önce
ebeveyn
işleme
8771d8af21
2 değiştirilmiş dosya ile 12 ekleme ve 13 silme
  1. 11 11
      .github/workflows/ftp-schedule.yml
  2. 1 2
      build/vite/plugin/html.ts

+ 11 - 11
.github/workflows/ftp-schedule.yml

@@ -25,17 +25,17 @@ jobs:
         with:
           node-version: '14.x'
 
-      - name: Get yarn cache
-        id: yarn-cache
-        run: echo "::set-output name=dir::$(yarn cache dir)"
-
-      - name: Cache dependencies
-        uses: actions/cache@v2
-        with:
-          path: ${{ steps.yarn-cache.outputs.dir }}
-          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
-          restore-keys: |
-            ${{ runner.os }}-yarn-
+      # - name: Get yarn cache
+      #   id: yarn-cache
+      #   run: echo "::set-output name=dir::$(yarn cache dir)"
+
+      # - name: Cache dependencies
+      #   uses: actions/cache@v2
+      #   with:
+      #     path: ${{ steps.yarn-cache.outputs.dir }}
+      #     key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
+      #     restore-keys: |
+      #       ${{ runner.os }}-yarn-
 
       - name: Build
         run: |

+ 1 - 2
build/vite/plugin/html.ts

@@ -7,8 +7,7 @@ import type { ViteEnv } from '../../utils';
 
 import html from 'vite-plugin-html';
 
-const pkg = require('../../../package.json');
-// import pkg from '../../../package.json';
+import pkg from '../../../package.json';
 import { GLOB_CONFIG_FILE_NAME } from '../../constant';
 
 export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) {