File tree Expand file tree Collapse file tree 4 files changed +60
-0
lines changed
Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push : # push trigger
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : true
16+
17+ jobs :
18+ deploy :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v4
22+
23+ - name : Install pnpm
24+ uses : pnpm/action-setup@v2
25+
26+ - name : Setup Node
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : " 20"
30+ cache : " pnpm"
31+
32+ - name : Install dependencies
33+ run : pnpm install --frozen-lockfile
34+
35+ - name : Build
36+ run : pnpm run build
37+
38+ - name : Setup Pages
39+ uses : actions/configure-pages@v4
40+
41+ - name : Upload artifact
42+ uses : actions/upload-pages-artifact@v3
43+ with :
44+ path : " ./dist"
45+
46+ - name : Deploy to GitHub Pages
47+ id : deployment
48+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 33 "private" : true ,
44 "version" : " 0.0.0" ,
55 "type" : " module" ,
6+ "packageManager" : " pnpm@9.0.0" ,
67 "scripts" : {
78 "dev" : " vite" ,
89 "dev:hash" : " vite --open ./index.hash.html" ,
Original file line number Diff line number Diff line change 11const enableMocking = ( ) =>
22 import ( "./mocks/browser.js" ) . then ( ( { worker } ) =>
33 worker . start ( {
4+ serviceWorker : {
5+ url : `${ import . meta. env . BASE_URL } mockServiceWorker.js` ,
6+ } ,
47 onUnhandledRequest : "bypass" ,
58 } ) ,
69 ) ;
Original file line number Diff line number Diff line change 1+ import { defineConfig } from "vite" ;
2+
3+ export default defineConfig ( {
4+ base : "/front_7th_chapter2-1/" ,
5+ build : {
6+ outDir : "dist" ,
7+ } ,
8+ } ) ;
You can’t perform that action at this time.
0 commit comments