Skip to content

Commit b338bcb

Browse files
authored
Merge pull request #136 from Soohyuniii/fix/production-mode
fix: ci 설정
2 parents c008496 + 3407df2 commit b338bcb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,20 @@ jobs:
2626
run: |
2727
echo "MODE=production" > .env.production
2828
echo "VITE_GA_MEASUREMENT_ID=${{ secrets.VITE_GA_MEASUREMENT_ID }}" >> .env.production
29-
echo "VITE_MODE=production" >> .env.production
3029
3130
- name: Run build
3231
env:
3332
NODE_ENV: production
3433
VITE_MODE: production
35-
run: npm run build
34+
run: npm run build -- --mode production
3635

3736
- name: Verify Build Mode
3837
run: |
3938
grep -r "production" dist/assets/*.js | grep "import.meta.env.MODE"
4039
40+
- name: Debug .env.production file
41+
run: cat .env.production || echo ".env.production not found"
42+
4143
- name: Docker build & push
4244
run: |
4345
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}

0 commit comments

Comments
 (0)