File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments