Skip to content

chore(workflow): update GitHub Actions to use pnpm for dependency man…#62

Merged
chenyme merged 2 commits intolinux-do:masterfrom
OrenZhang:chore_workflow
Jul 6, 2025
Merged

chore(workflow): update GitHub Actions to use pnpm for dependency man…#62
chenyme merged 2 commits intolinux-do:masterfrom
OrenZhang:chore_workflow

Conversation

@OrenZhang
Copy link
Contributor

…agement

例行检查

  • 我已阅读并理解 贡献者公约
  • 我已阅读并同意 贡献者许可协议 (CLA),确认我的贡献将根据项目的 MIT 许可证进行许可,
  • 我知晓如果此 PR 并不做出实质性更改,或可被认为是为了PR被合并而提交PR的,则可能不会被合并,

变更内容

优化 Workflow

@OrenZhang OrenZhang self-assigned this Jul 6, 2025
Copilot AI review requested due to automatic review settings July 6, 2025 05:29

This comment was marked as outdated.

@OrenZhang OrenZhang requested a review from Copilot July 6, 2025 05:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

本次 PR 主要将 GitHub Actions 的前端依赖管理从 npm 切换为 pnpm,并在部分 Workflow 中统一添加 Go 环境及依赖安装步骤,提升安装速度和一致性。

  • .github/workflows/eslint.yml 中使用 pnpm/action-setup,替换 npm installpnpm install 并添加 pnpm 缓存
  • .github/workflows/copilot-setup-steps.yml 中同样替换为 pnpm 安装方式,并新增 Go 环境及 Swag 安装步骤
  • check_license.ymlbuild_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

@OrenZhang OrenZhang requested a review from chenyme July 6, 2025 05:33
@chenyme chenyme merged commit d9ee67f into linux-do:master Jul 6, 2025
10 checks passed
@OrenZhang OrenZhang deleted the chore_workflow branch July 6, 2025 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants