mirror of
https://github.com/riba2534/TCP-IP-NetworkNote.git
synced 2026-06-30 09:56:04 +08:00
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:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user