Skip to content

Commit 3654196

Browse files
committed
switch to yarn
1 parent c76dff7 commit 3654196

9 files changed

Lines changed: 1768 additions & 3725 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
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: |
@@ -31,7 +33,7 @@ jobs:
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:
@@ -44,5 +46,5 @@ jobs:
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.hugo_build.lock
22
*.iml
33
/.idea/
4+
/.yarn/
45
/node_modules
56
/public/
67
/resources/

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

2727
The 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`

config/_default/hugo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ services:
6666
module:
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

netlify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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"

0 commit comments

Comments
 (0)