更新 .gitea/workflows/deploy.yml
Some checks failed
Hexo Build and Deploy / Build Hexo and Deploy to GitHub (push) Has been cancelled
Some checks failed
Hexo Build and Deploy / Build Hexo and Deploy to GitHub (push) Has been cancelled
This commit is contained in:
@ -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-
|
||||||
|
|||||||
Reference in New Issue
Block a user