File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 node-version : 20
1717
1818 - name : Install dependencies
19- run : npm ci
19+ run : |
20+ corepack enable
21+ yarn install --immutable
2022
2123 - name : Install hugo
2224 run : |
3133 bundler-cache : true # runs 'bundle install' and caches installed gems automatically
3234
3335 - name : Generate website
34- run : npm run build:prod
36+ run : yarn run build:prod
3537
3638 - name : Run HTMLProofer
3739 run :
4446
4547 - name : End-2-end tests
4648 run : |
47- npm run start:e2e &
48- npm run cy:ci
49+ yarn run start:e2e &
50+ yarn run cy:ci
Original file line number Diff line number Diff line change 11.hugo_build.lock
22* .iml
33/.idea /
4+ /.yarn /
45/node_modules
56/public /
67/resources /
Original file line number Diff line number Diff line change 1+ nodeLinker : node-modules
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ This repository contains the code that runs [yktoo.com](https://yktoo.com/).
1212
1313## Build
1414
15- * ` npm install`
16- * ` npm run build` in development mode, or ` npm run build:prod` in production mode
15+ * ` yarn install`
16+ * ` yarn run build` in development mode, or ` yarn run build:prod` in production mode
1717
1818## Run a live server
1919
20- * ` npm start`
20+ * ` yarn start`
2121* Navigate to [ localhost:1313] ( http://localhost:1313/ )
2222
2323## Configuration
@@ -26,5 +26,5 @@ This repository contains the code that runs [yktoo.com](https://yktoo.com/).
2626
2727The following environments are configured for this website:
2828
29- * ` development ` — it disables inserting Google Analytics script into the generated HTML pages. Used when you run ` npm start` or ` npm build` .
30- * ` production ` — used when running ` npm run build:prod`
29+ * ` development ` — it disables inserting Google Analytics script into the generated HTML pages. Used when you run ` yarn start` or ` yarn build` .
30+ * ` production ` — used when running ` yarn run build:prod`
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ services:
6666module :
6767 hugoVersion :
6868 extended : true
69- min : " 0.145 .0"
69+ min : " 0.150 .0"
7070 mounts :
7171 - source : node_modules
7272 target : assets/node_modules
Original file line number Diff line number Diff line change 11[build ]
22 base = " /"
3- command = " npm ci && npm run build:prod"
3+ command = " yarn install --immutable && yarn run build:prod"
44 publish = " public"
55
66[build .environment ]
7- HUGO_VERSION = " 0.145 .0"
7+ HUGO_VERSION = " 0.150 .0"
88 NODE_VERSION = " 22"
You can’t perform that action at this time.
0 commit comments