Skip to content

Commit 3bc42b8

Browse files
committed
[optimize] replace Yarn with PNPM to reduce Disk Usage
1 parent e5f2636 commit 3bc42b8

File tree

5 files changed

+6613
-4127
lines changed

5 files changed

+6613
-4127
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@ jobs:
77
Build-and-Deploy:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1211
with:
1312
submodules: recursive
14-
- name: Use Node.js
15-
uses: actions/setup-node@v2
13+
14+
- uses: pnpm/action-setup@v2
1615
with:
17-
node-version: 14
18-
cache: yarn
19-
- name: Install & build
20-
run: yarn && yarn build
16+
version: 8
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
cache: pnpm
21+
- name: Install & Build
22+
run: pnpm i && pnpm build
23+
2124
- name: Deploy
2225
uses: peaceiris/actions-gh-pages@v3
2326
with:

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers = false

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,40 @@
1313
"version": "4.2.1"
1414
},
1515
"dependencies": {
16-
"cheerio": "1.0.0-rc.10",
16+
"cheerio": "^1.0.0-rc.12",
1717
"hexo": "^4.2.1",
18-
"hexo-auto-category": "^0.2.1",
18+
"hexo-auto-category": "^0.2.2",
1919
"hexo-deployer-git": "^2.1.0",
2020
"hexo-generator-archive": "^1.0.0",
2121
"hexo-generator-category": "^1.0.0",
2222
"hexo-generator-feed": "^2.2.0",
2323
"hexo-generator-index": "^1.0.0",
24-
"hexo-generator-slidehtml": "0.0.62",
24+
"hexo-generator-slidehtml": "0.0.64",
2525
"hexo-generator-tag": "^1.0.0",
26-
"hexo-migrator-web": "^1.1.0",
26+
"hexo-migrator-web": "^1.2.1",
2727
"hexo-permalink-pinyin": "^1.1.0",
2828
"hexo-prism-plugin": "^2.3.0",
2929
"hexo-reference": "^1.0.4",
3030
"hexo-renderer-ejs": "^1.0.0",
3131
"hexo-renderer-marked": "^2.0.0",
3232
"hexo-renderer-stylus": "^1.1.0",
3333
"hexo-server": "^1.0.0",
34-
"icalendar": "^0.7.1",
35-
"object-assign": "^4.1.1"
34+
"icalendar": "^0.7.1"
3635
},
3736
"lint-staged": {
3837
"*.{html,md,css,less,js,json,yml,yaml}": "prettier --write"
3938
},
4039
"scripts": {
4140
"prepare": "husky install",
41+
"test": "lint-staged",
4242
"start": "hexo clean && hexo server",
4343
"deploy": "hexo clean && hexo deploy",
4444
"build": "hexo clean && hexo generate"
4545
},
4646
"devDependencies": {
47-
"husky": "^7.0.4",
48-
"prettier": "^2.5.1"
47+
"husky": "^8.0.3",
48+
"lint-staged": "^14.0.1",
49+
"prettier": "^3.0.3"
4950
},
5051
"prettier": {
5152
"trailingComma": "none",

0 commit comments

Comments
 (0)