File tree Expand file tree Collapse file tree 4 files changed +234
-1
lines changed Expand file tree Collapse file tree 4 files changed +234
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build-and-deploy :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Check out the code
14
+ uses : actions/checkout@v3
15
+
16
+ - name : Set up Node.js
17
+ uses : actions/setup-node@v3
18
+ with :
19
+ node-version : ' 18.x'
20
+
21
+ - name : Install dependencies
22
+ run : npm install
23
+
24
+ - name : Build the project
25
+ run : npm run build
26
+
27
+ - name : Deploy to GitHub Pages
28
+ uses : peaceiris/actions-gh-pages@v3
29
+ with :
30
+ github_token : ${{ secrets.TOKEN }}
31
+ publish_dir : ./build
Original file line number Diff line number Diff line change
1
+ name : Check Pull Request
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - beta
7
+
8
+ jobs :
9
+ check-and-merge :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Check out the code
14
+ uses : actions/checkout@v3
15
+
16
+ - name : Set up Node.js
17
+ uses : actions/setup-node@v3
18
+ with :
19
+ node-version : ' 18.x'
20
+
21
+ - name : Install dependencies
22
+ run : npm install
23
+
24
+ - name : Build the project
25
+ run : npm run build
26
+
27
+ env :
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 2
2
"name" : " biokudi-frontend" ,
3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
+ "homepage" : " https://rfgrona.github.io/biokudi-frontend/" ,
5
6
"dependencies" : {
6
7
"@testing-library/jest-dom" : " ^5.17.0" ,
7
8
"@testing-library/react" : " ^13.4.0" ,
8
9
"@testing-library/user-event" : " ^13.5.0" ,
10
+ "biokudi-frontend" : " file:" ,
9
11
"react" : " ^18.3.1" ,
10
12
"react-dom" : " ^18.3.1" ,
11
13
"react-scripts" : " 5.0.1" ,
15
17
"start" : " react-scripts start" ,
16
18
"build" : " react-scripts build" ,
17
19
"test" : " react-scripts test" ,
18
- "eject" : " react-scripts eject"
20
+ "eject" : " react-scripts eject" ,
21
+ "predeploy" : " npm run build" ,
22
+ "deploy" : " gh-pages -d build"
19
23
},
20
24
"eslintConfig" : {
21
25
"extends" : [
34
38
" last 1 firefox version" ,
35
39
" last 1 safari version"
36
40
]
41
+ },
42
+ "devDependencies" : {
43
+ "gh-pages" : " ^6.1.1"
37
44
}
38
45
}
You can’t perform that action at this time.
0 commit comments