Skip to content

chore(ci): upgrade GitHub Actions to latest major versions#25

Merged
yanglbme merged 1 commit into
mainfrom
chore/upgrade-github-actions
Jun 25, 2026
Merged

chore(ci): upgrade GitHub Actions to latest major versions#25
yanglbme merged 1 commit into
mainfrom
chore/upgrade-github-actions

Conversation

@yanglbme

Copy link
Copy Markdown
Member

Summary

升级所有 workflow 中的 GitHub Actions 至最新稳定主版本,并修复相关兼容问题。

Action 旧版本 新版本
actions/checkout v4 v7
actions/setup-node v4 v6
pnpm/action-setup v4 (pnpm 9) v6(读取 packageManager)
actions/cache v4 移除,改用 setup-node 内置 pnpm cache
actions/upload-pages-artifact v3 v5
actions/deploy-pages v4 v5
creyD/prettier_action v3.3 v4.6
calibreapp/image-actions @main @1.5.0
ad-m/github-push-action @master @v1.3.0

其他修复:

  • package.json 中声明 packageManager: pnpm@11.9.0,解决 lockfile overrides 与 CI pnpm 版本不一致的问题
  • prettier_action v4.6 将 file_patternprettier_options 分离,修复 **/*.{md} 匹配失败

Test plan

  • pnpm install --frozen-lockfile — 通过
  • pnpm run docs:build — 构建成功
  • 合并后确认 Build and deploy / Prettier workflow 通过

Made with Cursor

Copilot AI review requested due to automatic review settings June 25, 2026 11:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Bump official actions to v5-v7, pin third-party actions to releases, fix prettier_action v4.6 file pattern, and align pnpm with packageManager for frozen lockfile installs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@yanglbme yanglbme force-pushed the chore/upgrade-github-actions branch from b145a01 to 017d233 Compare June 25, 2026 11:04
@yanglbme yanglbme merged commit 1ca6ef5 into main Jun 25, 2026
1 check failed
@yanglbme yanglbme deleted the chore/upgrade-github-actions branch June 25, 2026 11:10
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.

2 participants