File tree Expand file tree Collapse file tree 9 files changed +9634
-8744
lines changed
Expand file tree Collapse file tree 9 files changed +9634
-8744
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,16 @@ jobs:
1414 steps :
1515 - uses : actions/checkout@v2
1616
17+ - name : ' Installing Build Deps'
18+ run : npm i -g pnpm
19+
1720 - name : ' Installing deps'
1821 run : |
19- yarn
22+ pnpm i
2023 npm i -g @lhci/cli@0.9.x serve
2124
2225 - name : ' Build Prodcution'
23- run : yarn build
26+ run : pnpm build
2427
2528 - name : ' Serve Prodcution Server'
2629 run : serve -s build &
Original file line number Diff line number Diff line change 2020 with :
2121 node-version : ${{ matrix.node-version }}
2222 - name : ' Installing deps'
23- run : yarn
23+ run : npm i -g pnpm && pnpm i
2424 - name : ' Predeploy' # no need to add test and everything seperately, we ensure everything with predeploy
25- run : yarn predeploy
25+ run : pnpm predeploy
Original file line number Diff line number Diff line change @@ -19,12 +19,15 @@ jobs:
1919 uses : actions/setup-node@v1
2020 with :
2121 node-version : ${{ matrix.node-version }}
22+
23+ - name : ' Installing build deps'
24+ run : npm i -g pnpm
2225 - name : ' Installing deps'
23- run : yarn
26+ run : pnpm i
2427# - name: 'Test'
25- # run: yarn test
28+ # run: pnpm test
2629 - name : ' Build'
27- run : yarn build # --if-present
30+ run : pnpm build # --if-present
2831 - name : ' Deploy'
2932 uses : peaceiris/actions-gh-pages@v4
3033 with :
Original file line number Diff line number Diff line change @@ -11,11 +11,14 @@ jobs:
1111 steps :
1212 - uses : actions/checkout@v2
1313
14+ - name : ' Installing build deps'
15+ run : npm i -g pnpm
16+
1417 - name : ' Installing deps'
15- run : yarn && npm i -g serve
18+ run : pnpm i && npm i -g serve
1619
1720 - name : ' Build Prodcution'
18- run : yarn build
21+ run : pnpm build
1922
2023 - name : ' Serve Prodcution Server'
2124 run : serve -s build -p 5173 &
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ FROM node:18.18.2-alpine3.17
22
33COPY . .
44
5- RUN yarn
5+ RUN pnpm i
66
7- RUN yarn build
7+ RUN pnpm build
88
99RUN npm i -g serve
1010
Original file line number Diff line number Diff line change 5959 "start" : " vite" ,
6060 "build" : " rm -rf build && tsc && vite build" ,
6161 "serve" : " vite preview" ,
62- "predeploy" : " yarn lint && yarn build" ,
62+ "predeploy" : " pnpm lint && pnpm build" ,
6363 "deploy" : " gh-pages -d build" ,
6464 "test:e2e" : " cypress open" ,
6565 "test:e2e:ci" : " cypress run" ,
You can’t perform that action at this time.
0 commit comments