Skip to content

Commit 07ea43b

Browse files
authored
Migrate to modern yarn, bump node to 22 (#468)
Signed-off-by: Derek Nola <[email protected]>
1 parent 4e9fab6 commit 07ea43b

File tree

6 files changed

+15371
-11129
lines changed

6 files changed

+15371
-11129
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@ jobs:
1717
name: Deploy to GitHub Pages
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
with:
2222
ref: ${{ github.event.inputs.dev_branch }}
23+
24+
- name: Enable Corepack for Modern Yarn
25+
run: corepack enable
2326
- uses: actions/setup-node@v4
2427
with:
25-
node-version: 18
28+
node-version: 22
2629
cache: yarn
2730

2831
- name: Install dependencies
29-
run: yarn install --frozen-lockfile
32+
run: yarn install --immutable
3033
- name: Build website
3134
if: ${{ github.repository_owner == 'k3s-io' }}
3235
run: yarn build

.github/workflows/test-deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ jobs:
1010
name: Test deployment
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
14+
- name: Enable Corepack for Modern Yarn
15+
run: corepack enable
1416
- uses: actions/setup-node@v4
1517
with:
16-
node-version: 18
18+
node-version: 22
1719
cache: yarn
1820

1921
- name: Install dependencies
20-
run: yarn install --frozen-lockfile
22+
run: yarn install --immutable
2123
- name: Check internal links
2224
run: yarn run remark --use remark-validate-links --frail ./docs
2325
- name: Check external links

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Dependencies
22
/node_modules
3+
install-state.gz
34

45
# Production
56
/build

.yarnrc.yml

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

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
[
5454
"remark-lint-no-dead-urls",
5555
{
56-
"deadOrAliveOptions":{
56+
"deadOrAliveOptions": {
5757
"maxRetries": 3,
5858
"timeout": 5000
5959
},
@@ -67,5 +67,6 @@
6767
}
6868
]
6969
]
70-
}
70+
},
71+
"packageManager": "[email protected]"
7172
}

0 commit comments

Comments
 (0)