Skip to content

Commit ae343ba

Browse files
committed
[optimize] upgrade to PNPM 10, Lint-Staged 16 & other latest Upstream packages
[optimize] support Workflow Dispatch for Deployment action [optimize] update Wiki data
1 parent 696d83b commit ae343ba

File tree

4 files changed

+630
-691
lines changed

4 files changed

+630
-691
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: CI & CD
22
on:
3+
workflow_dispatch:
34
push:
45
branches:
56
- hexo
@@ -13,7 +14,7 @@ jobs:
1314
lfs: true
1415
- uses: pnpm/action-setup@v4
1516
with:
16-
version: 9
17+
version: 10
1718
- uses: actions/setup-node@v4
1819
with:
1920
node-version: 22

package.json

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"version": "4.2.1"
1414
},
1515
"dependencies": {
16-
"cheerio": "^1.0.0",
16+
"cheerio": "^1.1.2",
1717
"hexo": "^4.2.1",
1818
"hexo-auto-category": "^0.2.2",
1919
"hexo-deployer-git": "^2.1.0",
@@ -36,22 +36,29 @@
3636
"lint-staged": {
3737
"*.{html,md,css,less,js,json,yml,yaml}": "prettier --write"
3838
},
39-
"scripts": {
40-
"prepare": "husky",
41-
"test": "lint-staged",
42-
"crawl": "hexo migrate web",
43-
"start": "hexo clean && hexo server --draft",
44-
"deploy": "hexo clean && hexo deploy",
45-
"build": "hexo clean && hexo generate"
46-
},
4739
"devDependencies": {
4840
"husky": "^9.1.7",
49-
"lint-staged": "^15.4.3",
50-
"prettier": "^3.5.2"
41+
"lint-staged": "^16.2.4",
42+
"prettier": "^3.6.2"
43+
},
44+
"pnpm": {
45+
"onlyBuiltDependencies": [
46+
"ejs",
47+
"highlight.js",
48+
"web-fetch"
49+
]
5150
},
5251
"prettier": {
5352
"trailingComma": "none",
5453
"arrowParens": "avoid",
5554
"tabWidth": 2
55+
},
56+
"scripts": {
57+
"prepare": "husky",
58+
"test": "lint-staged",
59+
"crawl": "hexo migrate web",
60+
"start": "hexo clean && hexo server --draft",
61+
"deploy": "hexo clean && hexo deploy",
62+
"build": "hexo clean && hexo generate"
5663
}
5764
}

0 commit comments

Comments
 (0)