10 Commits

Author SHA1 Message Date
google-labs-jules[bot]
faab20ac2f feat: restore .npmrc state at the end of setup-node-environment action
This change modifies the `setup-node-environment` composite action to ensure that any changes made to the `.npmrc` file during the action's execution are reverted at the end.

- **Backup:** At the beginning of the `prepare` step, the existing `.npmrc` is backed up to `.npmrc.action-backup`. If `.npmrc` does not exist, a marker file `.npmrc.was-missing` is created.
- **Restore:** A new step `🧹 恢复 .npmrc` is added at the end of the action. It runs with `if: always()` to guarantee execution even if intermediate steps fail. It either restores `.npmrc` from the backup or deletes it if it was originally missing.

This ensures that the action leaves the environment (specifically the `.npmrc` file) in the same state as it found it, preventing side effects on subsequent workflow steps or jobs.
2025-12-08 22:44:31 +08:00
严浩
94776edf02 Modify pnpm store prune to avoid failure
Ensure pnpm store prune does not fail the workflow.
2025-11-18 02:37:29 +08:00
严浩
336b5888cb 更新测试矩阵配置 2025-11-08 00:37:07 +08:00
严浩
df71143b19 禁用 actions/setup-node 操作中的包管理器缓存支持 2025-11-08 00:13:08 +08:00
严浩
2789f3bdea 更新 actions/setup-node 操作至 v6,启用包管理器缓存支持 2025-11-08 00:12:54 +08:00
严浩
12db0a28be 优化 pnpm 缓存逻辑,简化条件判断,确保在存在 pnpm-lock.yaml 时正确处理依赖安装 2025-11-08 00:07:42 +08:00
严浩
ed22d4eca5 更新 actions/setup-node 操作,添加 pnpm 缓存支持和条件逻辑 2025-11-07 23:59:33 +08:00
严浩
8302cf7807 更新 Node.js 版本解析逻辑,支持从 pnpm-workspace.yaml 读取版本配置 2025-11-07 23:51:20 +08:00
renovate[bot]
25eb4dc0c1 Update actions/setup-node action to v5 (#53)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-06 20:32:01 +00:00
严浩
41ff2ce04a 2025-08-12 14:04:44 +08:00