We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8145d6 commit 8dcd108Copy full SHA for 8dcd108
1 file changed
.github/workflows/pages.yml
@@ -62,7 +62,9 @@ jobs:
62
uses: actions/setup-node@v4
63
with:
64
node-version: "20"
65
- cache: npm
+ # 仅 GitHub-hosted runner 启用云端 npm cache。
66
+ # self-hosted 上 ~/.npm 已跨 job 持久化,云端 cache 反而易超时(见 #6 失败日志)。
67
+ cache: ${{ runner.environment == 'github-hosted' && 'npm' || '' }}
68
cache-dependency-path: scripts/package-lock.json
69
70
- name: Install build deps
0 commit comments