Skip to content

Commit eb8e300

Browse files
committed
Merge branch 'master' of github.com:curder/code-snippets
2 parents 5860d22 + 616e405 commit eb8e300

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/others/vitepress/getting-started.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ yarn init
3333
"repository": "https://github.com/curder/code-snippets.git",
3434
"author": "curder <[email protected]>",
3535
"license": "MIT",
36-
"type": "module"
36+
"type": "module",
37+
"engines": {
38+
"node": ">= 18"
39+
},
3740
}
3841
```
3942
:::
@@ -62,13 +65,16 @@ echo '<!--@include: ./README.md-->' > docs/index.md
6265
"author": "curder <[email protected]>",
6366
"license": "MIT",
6467
"type": "module",
68+
"engines": {
69+
"node": ">= 18"
70+
},
6571
"scripts": { // [!code focus]
6672
"docs:dev": "vitepress dev docs", // [!code focus]
6773
"docs:build": "vitepress build docs", // [!code focus]
6874
"docs:preview": "vitepress preview docs" // [!code focus]
6975
}, // [!code focus]
7076
"devDependencies": {
71-
"vitepress": "^1.1.4"
77+
"vitepress": "^1.3.4"
7278
}
7379
}
7480
```
@@ -174,7 +180,7 @@ on:
174180

175181
jobs:
176182
build-docs:
177-
runs-on: ubuntu-22.04
183+
runs-on: ubuntu-24.04
178184
permissions:
179185
contents: write
180186
concurrency:
@@ -188,7 +194,7 @@ jobs:
188194
- name: Setup Node
189195
uses: actions/setup-node@v3
190196
with:
191-
node-version: '16.x'
197+
node-version: '18.x'
192198

193199
- name: Get yarn cache
194200
id: yarn-cache

0 commit comments

Comments
 (0)