Skip to content

Commit 8dcd108

Browse files
committed
fix: npm cache disable
1 parent a8145d6 commit 8dcd108

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ jobs:
6262
uses: actions/setup-node@v4
6363
with:
6464
node-version: "20"
65-
cache: npm
65+
# 仅 GitHub-hosted runner 启用云端 npm cache。
66+
# self-hosted 上 ~/.npm 已跨 job 持久化,云端 cache 反而易超时(见 #6 失败日志)。
67+
cache: ${{ runner.environment == 'github-hosted' && 'npm' || '' }}
6668
cache-dependency-path: scripts/package-lock.json
6769

6870
- name: Install build deps

0 commit comments

Comments
 (0)