Skip to content

Conversation

Single-Dancer
Copy link
Collaborator

@Single-Dancer Single-Dancer commented Jun 5, 2025

这个 PR 做了什么? (简要描述所做更改)

这个 PR 是什么类型? (至少选择一个)

  • 错误修复 (Bugfix) issue: fix #
  • 新功能 (Feature)
  • 代码重构 (Refactor)
  • TypeScript 类型定义修改 (Types)
  • 文档修改 (Docs)
  • 代码风格更新 (Code style update)
  • 构建优化 (Chore)
  • 其他,请描述 (Other, please describe):

这个 PR 涉及以下平台:

  • 所有小程序
  • 微信小程序
  • 支付宝小程序
  • 百度小程序
  • 字节跳动小程序
  • QQ 轻应用
  • 京东小程序
  • 快应用平台(QuickApp)
  • Web 平台(H5)
  • 移动端(React-Native)
  • 鸿蒙(harmony)

Summary by CodeRabbit

  • Chores
    • 重构并简化了自动化发布流程,移除了所有测试、Rust 构建及相关校验,仅保留发布与发布后自动创建 Release 的功能。
    • 发布流程现支持一次性发布多个 npm 包,并自动在 PR 合并后创建 Release 并评论通知。
    • @tarojs/plugin-platform-ascf 包配置为以公开模式发布。

Copy link

coderabbitai bot commented Jun 5, 2025

Warning

Rate limit exceeded

@Single-Dancer has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 0 minutes and 32 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between fbe139c and 756dda6.

📒 Files selected for processing (1)
  • .github/workflows/publish.yml (2 hunks)

Walkthrough

此次更改重构并精简了 GitHub Actions 工作流,移除了所有 Rust 相关构建、测试和发布前校验,仅保留单一的发布流程。发布流程被简化为在 Ubuntu 上依次发布多个 npm 包,并在合并 PR 后自动创建 Release。部分包配置了公开发布权限。

Changes

文件/路径 变更摘要
.github/workflows/nodejs.yml
.github/workflows/publish.yml
工作流重命名与重构,移除 Rust 构建、测试、发布前校验,合并为单一发布任务,简化流程与依赖。
packages/taro-platform-ascf/package.json 新增 publishConfig: { "access": "public" },指定包为公开发布。

Sequence Diagram(s)

sequenceDiagram
    actor Developer
    participant GitHub Actions
    participant NPM Registry
    participant GitHub Releases

    Developer->>GitHub Actions: Push/PR merge到指定分支
    GitHub Actions->>GitHub Actions: 依次发布多个npm包
    loop 对每个包
        GitHub Actions->>NPM Registry: 发布包
    end
    alt PR合并事件
        GitHub Actions->>GitHub Releases: 创建Release
        GitHub Actions->>Developer: PR评论发布Release链接
    end
Loading

Poem

🐇
发布流程轻装上阵,
Rust 测试悄然隐身。
Ubuntu 跳跃 npm 门,
多包逐一送上云。
PR 合并新 Release,
小兔鼓掌庆功勋!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (3)
.github/workflows/publish.yml (1)

139-139: 升级 actions/github-script 版本

actions/github-script@v6 已过时,可能导致兼容性问题。建议升级至最新主线版本(如 actions/github-script@v7)。

🧰 Tools
🪛 actionlint (1.7.7)

139-139: the runner of "actions/github-script@v6" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

.github/workflows/nodejs.yml (2)

70-79: 移除未使用的发布参数获取

已通过 grep 提取并设置 PUBLISH_PARAMS 环境变量,但未在后续步骤中使用。建议删除相关步骤,或将其应用于发布命令中。


139-139: 升级 actions/github-script 版本

publish.yml 建议,将 actions/github-script@v6 升级至最新版本以保证兼容性。

🧰 Tools
🪛 actionlint (1.7.7)

139-139: the runner of "actions/github-script@v6" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0997d9e and fbe139c.

📒 Files selected for processing (3)
  • .github/workflows/nodejs.yml (2 hunks)
  • .github/workflows/publish.yml (1 hunks)
  • packages/taro-platform-ascf/package.json (1 hunks)
🧰 Additional context used
🪛 actionlint (1.7.7)
.github/workflows/nodejs.yml

139-139: the runner of "actions/github-script@v6" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Publish
  • GitHub Check: Publish
🔇 Additional comments (3)
packages/taro-platform-ascf/package.json (1)

39-42: 验证发布配置

publishConfig.access 已正确设置为 public,符合公开发布需求。

.github/workflows/publish.yml (1)

112-115: 校验 pnpm 发布命令参数合法性

当前使用 pnpm publish --publish-branch=${{ github.ref_name }},但官方文档并未提及 --publish-branch 选项。请确认该参数是否生效,或替换为正确的 --tag 或其他合法参数。

.github/workflows/nodejs.yml (1)

112-115: 校验 pnpm 发布命令参数合法性

publish.yml 中指出,--publish-branch 似非官方支持选项,需确认或替换为正确的 --tag 等参数。

Comment on lines 31 to 61
CURRENT_VERSION: ''
PUBLISH_PARAMS: ''
steps:
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

缺少版本提取步骤

env 中定义了 CURRENT_VERSION,但未实际从 package.json 或其他来源赋值,会导致后续创建 Release 时标签为空。请补充版本提取逻辑。

🤖 Prompt for AI Agents
In .github/workflows/nodejs.yml around lines 31 to 33, the environment variable
CURRENT_VERSION is defined but not assigned any value, causing the release tag
to be empty. Add a step before using CURRENT_VERSION to extract the version from
package.json (e.g., using a command like `CURRENT_VERSION=$(node -p
"require('./package.json').version")`) and set it as an environment variable so
that it can be used properly in subsequent steps.

Comment on lines 1 to 5
on:
push:
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

警告:重复的发布工作流

nodejs.yml 中的发布逻辑与 publish.yml 几乎一致,可能导致重复触发与重复发布。建议合并或删除冗余工作流,降低维护成本并避免二次发布。

🤖 Prompt for AI Agents
In .github/workflows/nodejs.yml at lines 1 to 2, the publish workflow duplicates
the logic found in publish.yml, which can cause redundant triggers and duplicate
releases. Review both workflows and either merge their logic into a single
workflow or delete one of them to avoid duplication, reduce maintenance
overhead, and prevent multiple releases.

This was referenced Jun 7, 2025
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.

1 participant