Skip to content

Commit fc5fcdb

Browse files
author
Parsa Azari
committed
Improve GitHub Actions workflow: set production environment explicitly, add debugging, remove PR trigger
1 parent 7e22194 commit fc5fcdb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
86

97
jobs:
108
build-and-deploy:
@@ -33,7 +31,11 @@ jobs:
3331
run: npm ci
3432

3533
- name: Build
36-
run: npm run build
34+
run: |
35+
NODE_ENV=production npm run build
36+
ls -la dist/
37+
ls -la dist/assets/
38+
cat dist/index.html | grep -E "(script|link)"
3739
3840
- name: Setup Pages
3941
uses: actions/configure-pages@v4

0 commit comments

Comments
 (0)