Skip to content

Commit a3ea983

Browse files
authored
Merge pull request #137 from Soohyuniii/fix/production-mode
fix: ci 설정
2 parents b338bcb + 546be27 commit a3ea983

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,15 @@ jobs:
1919
with:
2020
node-version: "20"
2121

22-
- name: Install dependencies
23-
run: npm ci # npm install보다 빠르고, package-lock.json을 신뢰
24-
2522
- name: Create .env.production file
2623
run: |
2724
echo "MODE=production" > .env.production
2825
echo "VITE_GA_MEASUREMENT_ID=${{ secrets.VITE_GA_MEASUREMENT_ID }}" >> .env.production
2926
27+
- name: Install dependencies
28+
run: npm ci
29+
3030
- name: Run build
31-
env:
32-
NODE_ENV: production
33-
VITE_MODE: production
3431
run: npm run build -- --mode production
3532

3633
- name: Verify Build Mode

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite --mode development",
8-
"build": "vite build",
8+
"build": "vite build --mode production",
99
"lint": "eslint .",
1010
"preview": "vite preview",
1111
"start": "vite --port 3000"

0 commit comments

Comments
 (0)