2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

chore: optimize auto import

This commit is contained in:
耗子
2024-12-29 02:44:56 +08:00
parent f7b0798e8c
commit e5839678b3
6 changed files with 36 additions and 12 deletions

View File

@@ -26,13 +26,9 @@ jobs:
cache: 'pnpm'
cache-dependency-path: web/pnpm-lock.yaml
- name: Build frontend
# We need to run the dev server first to generate the auto-imports files
run: |
cp .env.production .env
cp settings/proxy-config.example.ts settings/proxy-config.ts
pnpm dev &
sleep 5
kill %1
pnpm build
- name: Upload frontend
uses: actions/upload-artifact@v4

View File

@@ -32,13 +32,9 @@ jobs:
cache-dependency-path: web/pnpm-lock.yaml
- name: Build frontend
working-directory: web
# We need to run the dev server first to generate the auto-imports files
run: |
cp .env.production .env
cp settings/proxy-config.example.ts settings/proxy-config.ts
pnpm dev &
sleep 5
kill %1
pnpm build
- name: Set environment variables
run: |

View File

@@ -59,4 +59,4 @@ jobs:
cache: 'pnpm'
cache-dependency-path: web/pnpm-lock.yaml
- name: Run pnpm lint
run: pnpm lint
run: pnpm lint