更新 .gitea/workflows/deploy.yml
Some checks failed
Hexo Build and Deploy / Build Hexo and Deploy to GitHub (push) Has been cancelled

This commit is contained in:
2025-10-14 02:50:01 +08:00
parent 9e817483ce
commit cd60d21c9d

View File

@ -14,14 +14,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '22' node-version: '22'
cache: 'npm' # 启用npm缓存 # cache: 'npm' # 启用npm缓存
- name: Cache node_modules - name: Cache node_modules
uses: actions/cache@v4 uses: actions/cache@v4
id: npm-cache id: npm-cache
with: with:
path: | path: |
node_modules node_modules
~/.npm # ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-node- ${{ runner.os }}-node-