File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 30
30
uses : actions/checkout@v4
31
31
with :
32
32
fetch-depth : 0 # 如果未启用 lastUpdated,则不需要
33
+
33
34
- uses : pnpm/action-setup@v3
34
35
35
36
- name : Setup Node
@@ -49,17 +50,17 @@ jobs:
49
50
# 将README.md同步,利于github pages分支展示
50
51
- name : Add Readme.md To Dist
51
52
run : |
52
- cp -f README.md docs/.vuepress/ dist
53
+ cp -f README.md dist
53
54
54
55
- name : Check GitHub Pages status
55
- uses : crazy-max/ghaction-github-status@v3
56
+ uses : crazy-max/ghaction-github-status@v4
56
57
with :
57
58
pages_threshold : major_outage
58
59
59
60
- name : Upload artifact
60
61
uses : actions/upload-pages-artifact@v3
61
62
with :
62
- path : docs/.vitepress/ dist
63
+ path : dist
63
64
64
65
# 部署工作
65
66
deploy :
Original file line number Diff line number Diff line change 14
14
"homePage" : " https://142vip.cn"
15
15
},
16
16
"scripts" : {
17
- "preinstall" : " npx only-allow pnpm && chmod +x ./scripts/* && pnpm build " ,
17
+ "preinstall" : " npx only-allow pnpm && chmod +x ./scripts/*" ,
18
18
"dev" : " vitepress dev --port 8080 --host" ,
19
- "build" : " npx fairy-cli turbo --build" ,
19
+ "build" : " npx fa turbo --build" ,
20
+ "build:fairy-cli" : " npx turbo run build --filter=@142vip/fairy-cli --color --only" ,
20
21
"build:docs" : " vitepress build" ,
21
- "clean" : " npx fairy-cli clean --ignore-tips --all" ,
22
+ "clean" : " npx fa clean --ignore-tips --all" ,
22
23
"lint" : " npx eslint . --fix" ,
23
24
"publish" : " npx lerna publish --canary from-git" ,
24
25
"preview" : " vitepress preview"
25
26
},
26
27
"dependencies" : {
27
28
},
28
29
"devDependencies" : {
30
+ "@142vip/fairy-cli" : " workspace:*" ,
29
31
"@142vip/changelog" : " workspace:*" ,
30
32
"@142vip/vitepress" : " workspace:*" ,
31
33
"@antfu/eslint-config" : " ^2.20.0" ,
You can’t perform that action at this time.
0 commit comments