chore(workflow): update GitHub Actions to use pnpm for dependency man…#62
Merged
chenyme merged 2 commits intolinux-do:masterfrom Jul 6, 2025
OrenZhang:chore_workflow
Merged
chore(workflow): update GitHub Actions to use pnpm for dependency man…#62chenyme merged 2 commits intolinux-do:masterfrom OrenZhang:chore_workflow
chenyme merged 2 commits intolinux-do:masterfrom
OrenZhang:chore_workflow
Conversation
There was a problem hiding this comment.
Pull Request Overview
本次 PR 主要将 GitHub Actions 的前端依赖管理从 npm 切换为 pnpm,并在部分 Workflow 中统一添加 Go 环境及依赖安装步骤,提升安装速度和一致性。
- 在
.github/workflows/eslint.yml中使用pnpm/action-setup,替换npm install为pnpm install并添加 pnpm 缓存 - 在
.github/workflows/copilot-setup-steps.yml中同样替换为 pnpm 安装方式,并新增 Go 环境及 Swag 安装步骤 check_license.yml和build_backend.yml仅做格式调整或同步,无功能变更
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/eslint.yml | 使用 pnpm/action-setup 并替换 npm 安装步骤 |
| .github/workflows/copilot-setup-steps.yml | 替换 corepack 启用为 pnpm/action-setup,添加 Go 环境和 Swag 安装 |
| .github/workflows/check_license.yml | 删除多余空行,无逻辑变更 |
| .github/workflows/build_backend.yml | 同步分支差异,无功能改动 |
Comments suppressed due to low confidence (2)
.github/workflows/eslint.yml:17
- 将安装 pnpm 的步骤移动到 Node.js 环境设置步骤之后,以确保 pnpm 在已安装 Node.js 的环境中运行。
- name: Install pnpm
.github/workflows/copilot-setup-steps.yml:23
- 将 pnpm/action-setup 步骤放在 actions/setup-node 之后,以确保 pnpm 在 Node.js 环境中可用。
- name: Install pnpm
chenyme
approved these changes
Jul 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…agement
例行检查
变更内容
优化 Workflow