Skip to content

Commit 21ca5de

Browse files
committed
bug fix
1 parent db17a30 commit 21ca5de

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

โ€Ž.github/workflows/deploy.ymlโ€Ž

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,36 @@ name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches:
6-
- main # ืื• ื”ืขื ืฃ ืฉื‘ื• ืืชื” ืขื•ื‘ื“
5+
branches: [ main ] # ื™ืจื•ืฅ ืจืง ื›ืฉื“ื•ื—ืคื™ื ืœ-main
76

87
jobs:
98
build:
109
runs-on: ubuntu-latest
1110

1211
steps:
13-
- uses: actions/checkout@v3
12+
# ืฉืœื‘ 1: ืžืฉื™ื›ืช ื”ืงื•ื“ ืžื”ืžืื’ืจ
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
1415

16+
# ืฉืœื‘ 2: ื”ืชืงื ืช Node.js 20
1517
- name: Setup Node.js
1618
uses: actions/setup-node@v3
1719
with:
18-
node-version: '18'
20+
node-version: 20
1921

22+
# ืฉืœื‘ 3: ื”ืชืงื ืช ื›ืœ ื”ืชืœื•ื™ื•ืช
2023
- name: Install dependencies
21-
run: npm install
24+
run: npm ci
2225
working-directory: ./client
2326

27+
# ืฉืœื‘ 4: ื‘ื ื™ื™ืช ื”ืคืจื•ื™ืงื˜ ืขื Vite
2428
- name: Build project
2529
run: npm run build
2630
working-directory: ./client
2731

32+
# ืฉืœื‘ 5: ืคืจื™ืกื” ืœ-GitHub Pages
2833
- name: Deploy to GitHub Pages
2934
uses: peaceiris/actions-gh-pages@v3
3035
with:
3136
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: ./client/build
37+
publish_dir: ./client/build

โ€Žclient/package.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "๐Ÿ๏ธ moto-ride โ€“ Your Digital Motorcycle Hub A sleek and powerful web interface for motorcycle enthusiasts and dealers. Browse, filter, and showcase bikes with ease. Responsive design, smart filtering, and a seamless shopping experience โ€” where performance meets style.",
55
"main": "index.js",
6+
"type": "module",
67
"scripts": {
78
"dev": "vite",
89
"build": "vite build",

0 commit comments

Comments
ย (0)