Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/prepare-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
steps:
- uses: pnpm/action-setup@v3
with:
version: 11
version: 11.12.0
Comment on lines 12 to +14

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

由于 package.json 中已经声明了 "packageManager": "pnpm@11.12.0",且 pnpm/action-setup 在未显式指定 version 时会自动读取并使用 package.json 中的 packageManager 字段。为了避免在多个地方重复维护 pnpm 的版本号(遵循单一数据源原则),建议直接移除 version 参数和 with 块。这样后续升级 pnpm 时,只需在 package.json 中进行修改即可。

    - uses: pnpm/action-setup@v3


- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
Expand Down
Loading