-
Notifications
You must be signed in to change notification settings - Fork 298
fix: corepack manager use pnpm failed #2963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8fba8b1
01df76d
d0e5425
f7e82a8
3e4256a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -16,7 +16,9 @@ jobs: | |||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||
|
|
||||||||||||||
| - name: Install pnpm | ||||||||||||||
| run: corepack enable pnpm | ||||||||||||||
| run: | | ||||||||||||||
| corepack enable | ||||||||||||||
| corepack prepare pnpm@9.15.2 --activate | ||||||||||||||
|
|
||||||||||||||
| - uses: actions/setup-node@v4 | ||||||||||||||
| with: | ||||||||||||||
|
|
@@ -35,7 +37,9 @@ jobs: | |||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||
|
|
||||||||||||||
| - name: Install pnpm | ||||||||||||||
| run: corepack enable pnpm | ||||||||||||||
| run: | | ||||||||||||||
| corepack enable | ||||||||||||||
| corepack prepare pnpm@9.15.2 --activate | ||||||||||||||
|
Comment on lines
+40
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion YAML 缩进错误(Test 作业) - run: |
- corepack enable
- corepack prepare pnpm@9.15.2 --activate
+ run: |
+ corepack enable
+ corepack prepare pnpm@9.15.2 --activate📝 Committable suggestion
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| - uses: actions/setup-node@v4 | ||||||||||||||
| with: | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
YAML 缩进错误(Lint 作业)
在 lint 作业中,多行
run: |命令的内容缺少必要的缩进,这可能会导致 YAML 解析错误。请调整命令行的缩进,建议如下修改:
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.4)
20-20: could not parse as YAML: yaml: line 20: could not find expected ':'
(syntax-check)
🪛 YAMLlint (1.35.1)
[error] 21-21: syntax error: could not find expected ':'
(syntax)