Skip to content

Commit ac7f18d

Browse files
committed
chore(ci): build with custom mode
1 parent 4a4a04a commit ac7f18d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ jobs:
4848
VITE_CODIMD_URL: pull-request
4949
VITE_GITLAB_CLIENT_ID: pull-request
5050
VITE_GITLAB_AUTHORITY: pull-request
51-
run: npm run build
51+
run: npm run build:ci

.github/workflows/push-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
VITE_CODIMD_URL: main
7474
VITE_GITLAB_CLIENT_ID: main
7575
VITE_GITLAB_AUTHORITY: main
76-
run: npm run build
76+
run: npm run build:ci
7777

7878
release:
7979
name: Release

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build": "tsc && vite build",
99
"build:prod": "NODE_ENV=production tsc && vite build",
1010
"build:test": "tsc --noEmit",
11+
"build:ci": "vite build --mode test",
1112
"##### DEV ###########": "###################################",
1213
"dev": "vite",
1314
"dev:preview": "vite preview",

0 commit comments

Comments
 (0)