feat: update Copilot setup to use pnpm for dependency management#61
Merged
chenyme merged 1 commit intolinux-do:masterfrom Jul 6, 2025
OrenZhang:chore_pnpm_copilot
Merged
feat: update Copilot setup to use pnpm for dependency management#61chenyme merged 1 commit intolinux-do:masterfrom OrenZhang:chore_pnpm_copilot
chenyme merged 1 commit intolinux-do:masterfrom
OrenZhang:chore_pnpm_copilot
Conversation
There was a problem hiding this comment.
Pull Request Overview
本次 PR 目的是将 Copilot 工作流从 npm 切换为 pnpm 进行依赖管理
- 新增 “Enable pnpm” 步骤,使用 Corepack 启用并激活 pnpm
- 更新
actions/setup-node缓存类型为 pnpm,并将锁文件路径指向frontend/pnpm-lock.yaml - 将依赖安装命令由
npm install替换为pnpm install
Comments suppressed due to low confidence (2)
.github/workflows/copilot-setup-steps.yml:23
- [nitpick] 建议使用官方的 pnpm/action-setup Action 来安装并管理 pnpm 版本,以减少对 corepack 命令的依赖并更清晰地控制版本。
- name: Enable pnpm
.github/workflows/copilot-setup-steps.yml:35
- 建议在安装依赖时添加
--frozen-lockfile标志,确保工作流使用锁文件中的精确版本,从而提高构建一致性和可重复性。
run: pnpm install
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.
例行检查
变更内容
修改为 PNPM 管理包