diff --git a/.github/workflows/ftp-schedule.yml b/.github/workflows/ftp-schedule.yml index 7925bca780b2026e496a69b8e33110ddea6f980e..0a5779eeb7869fb0b224b4d2e133a78ce1dee9b8 100644 --- a/.github/workflows/ftp-schedule.yml +++ b/.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: | diff --git a/build/vite/plugin/html.ts b/build/vite/plugin/html.ts index 713b87433b8d5361ce0174a9bd515f47a661b882..6612dc8fbdc342c41f60596642b60299329bfba6 100644 --- a/build/vite/plugin/html.ts +++ b/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) {