Skip to content

Commit 407b30e

Browse files
committed
250722
1 parent ab61c39 commit 407b30e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/pages.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,22 @@ jobs:
2525
uses: actions/cache@v4
2626
with:
2727
path: node_modules
28-
key: ${{ runner.OS }}-npm-cache
28+
key: ${{ runner.os }}-npm-cache
2929
restore-keys: |
30-
${{ runner.OS }}-npm-cache
30+
${{ runner.os }}-npm-cache
3131
- name: Install Dependencies
3232
run: |
3333
npm install
3434
npm install hexo@latest --save
3535
npm install hexo-deployer-git@latest --save
36-
npm install highlight.js@latest --save
36+
npm install highlight.js@^11.10.0 --save
3737
- name: Install Hexo CLI
3838
run: npm install -g hexo-cli@latest
3939
- name: Configure Git
4040
run: |
4141
git config --global user.name "GitHub Actions"
4242
git config --global user.email "actions@github.com"
43+
git config --global init.defaultBranch main
4344
- name: Run Hexo Commands
4445
run: |
4546
hexo cl

0 commit comments

Comments
 (0)