fix: 修复 CI npm ci 失败改用 npm install + Node 22

- npm ci 在 GitHub runner 上偶发 'Exit handler never called' 错误,
  改用 npm install 更稳健,去掉可能干扰的 npm cache 配置
- Node 20 已 deprecated,升级到 22 LTS
- 同时优化根 README:增加网站链接、徽章、目录、本地运行说明,
  按标准开源项目结构组织
This commit is contained in:
riba2534
2026-06-28 13:22:57 +08:00
parent c6ddea28fe
commit a86196e2ea
2 changed files with 90 additions and 11 deletions

View File

@@ -16,12 +16,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: site/package-lock.json
node-version: '22'
- name: Install dependencies
run: npm ci
run: npm install
working-directory: site
- name: Build site