Commit 8771d8af21f98517e7df8e51d205fdd5ceeebcbe
1 parent
2543d040
chore: update workflows
Showing
2 changed files
with
12 additions
and
13 deletions
.github/workflows/ftp-schedule.yml
@@ -25,17 +25,17 @@ jobs: | @@ -25,17 +25,17 @@ jobs: | ||
25 | with: | 25 | with: |
26 | node-version: '14.x' | 26 | node-version: '14.x' |
27 | 27 | ||
28 | - - name: Get yarn cache | ||
29 | - id: yarn-cache | ||
30 | - run: echo "::set-output name=dir::$(yarn cache dir)" | ||
31 | - | ||
32 | - - name: Cache dependencies | ||
33 | - uses: actions/cache@v2 | ||
34 | - with: | ||
35 | - path: ${{ steps.yarn-cache.outputs.dir }} | ||
36 | - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
37 | - restore-keys: | | ||
38 | - ${{ runner.os }}-yarn- | 28 | + # - name: Get yarn cache |
29 | + # id: yarn-cache | ||
30 | + # run: echo "::set-output name=dir::$(yarn cache dir)" | ||
31 | + | ||
32 | + # - name: Cache dependencies | ||
33 | + # uses: actions/cache@v2 | ||
34 | + # with: | ||
35 | + # path: ${{ steps.yarn-cache.outputs.dir }} | ||
36 | + # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
37 | + # restore-keys: | | ||
38 | + # ${{ runner.os }}-yarn- | ||
39 | 39 | ||
40 | - name: Build | 40 | - name: Build |
41 | run: | | 41 | run: | |
build/vite/plugin/html.ts
@@ -7,8 +7,7 @@ import type { ViteEnv } from '../../utils'; | @@ -7,8 +7,7 @@ import type { ViteEnv } from '../../utils'; | ||
7 | 7 | ||
8 | import html from 'vite-plugin-html'; | 8 | import html from 'vite-plugin-html'; |
9 | 9 | ||
10 | -const pkg = require('../../../package.json'); | ||
11 | -// import pkg from '../../../package.json'; | 10 | +import pkg from '../../../package.json'; |
12 | import { GLOB_CONFIG_FILE_NAME } from '../../constant'; | 11 | import { GLOB_CONFIG_FILE_NAME } from '../../constant'; |
13 | 12 | ||
14 | export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) { | 13 | export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) { |