Skip to content

Commit

Permalink
Update hexo version to 7.2.0 and use pnpm for dependency installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mobeicanyue committed Apr 27, 2024
1 parent 8128ea9 commit c6c1b5e
Show file tree
Hide file tree
Showing 4 changed files with 2,389 additions and 2,365 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ jobs:
- name: Check Out
uses: actions/checkout@v4
with:
fetch-depth: 0 # 用于获取提交记录,获取文件更新时间
fetch-depth: 0

- uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache: "pnpm"

- name: Install Dependencies
run: |
yarn install
pnpm install
# https://github.com/zhullyb/zhullyb.github.io/blob/master/.github/workflows/deploy.yml
# 修复 hexo 生成的文件更新时间 为当前时间,实际应为提交时间
Expand All @@ -35,7 +36,7 @@ jobs:
- name: Build Site
run: |
yarn build
pnpm build
- name: Move baidu_verify
run: |
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "hexo-site",
"homepage": "https://blog.ovvv.top",
"license": "GPL-3.0-or-later",
"version": "0.0.0",
"license": "Apache-2.0",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "hexo generate",
Expand All @@ -11,7 +11,7 @@
"server": "hexo server"
},
"hexo": {
"version": "7.1.1"
"version": "7.2.0"
},
"dependencies": {
"hexo": "^7.2.0",
Expand Down
Loading

0 comments on commit c6c1b5e

Please sign in to comment.