fix: 修复 GitHub Actions 中 Rollup 原生模块缺失错误
- 添加依赖清理步骤删除 node_modules 和锁文件 - 使用 npm install --force 强制解决依赖冲突 - 移除 Node.js 缓存配置避免缓存问题 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
6f0ce39148
commit
2b18f1106b
1 file changed
+4
-4
@@ -31,17 +31,17 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "18"
|
||||
cache: 'npm'
|
||||
cache-dependency-path: src/NetVizor.Frontend/package-lock.json
|
||||
|
||||
- name: 配置 GitHub Pages
|
||||
uses: actions/configure-pages@v4
|
||||
with:
|
||||
static_site_generator: vite
|
||||
|
||||
- name: 安装依赖
|
||||
- name: 清理并安装依赖
|
||||
working-directory: src/NetVizor.Frontend
|
||||
run: npm install
|
||||
run: |
|
||||
rm -rf node_modules package-lock.json pnpm-lock.yaml
|
||||
npm install --force
|
||||
|
||||
- name: 构建演示版本
|
||||
working-directory: src/NetVizor.Frontend
|
||||
|
||||
Reference in new issue
Block a user