Skip to content

Commit 40eccde

Browse files
committed
修改github page
1 parent 79b854c commit 40eccde

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ jobs:
4242
- name: Setup Pages
4343
uses: actions/configure-pages@v4
4444
- name: Install dependencies
45-
run: |
46-
npm cache clean --force
47-
rm -rf node_modules package-lock.json
48-
npm install
45+
run: npm ci # 或 pnpm install / yarn install / bun install
4946
- name: Build with VitePress
5047
run: npm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
5148
- name: Upload artifact

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
node_modules/
22
yarn.lock
3-
package-lock.json
43
.DS_Store
54
# local dist
65
/dist

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"medium-zoom": "^1.0.6",
44
"mermaid": "^11.9.0",
55
"vitepress": "^1.6.3",
6-
"vitepress-plugin-mermaid": "^2.0.17"
6+
"vitepress-plugin-mermaid": "^2.0.17",
7+
"rollup": "4.46.2"
78
},
89
"scripts": {
910
"docs:dev": "vitepress dev docs",

0 commit comments

Comments
 (0)