Skip to content
Closed
Show file tree
Hide file tree
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
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines +19 to +21

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

⚠️ Potential issue

YAML 缩进错误(Lint 作业)
在 lint 作业中,多行 run: | 命令的内容缺少必要的缩进,这可能会导致 YAML 解析错误。
请调整命令行的缩进,建议如下修改:

-        run: |
-        corepack enable
-        corepack prepare pnpm@9.15.2 --activate
+        run: |
+          corepack enable
+          corepack prepare pnpm@9.15.2 --activate
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
run: |
corepack enable
corepack prepare pnpm@9.15.2 --activate
run: |
corepack enable
corepack prepare pnpm@9.15.2 --activate
🧰 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)


- uses: actions/setup-node@v4
with:
Expand All @@ -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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

⚠️ Potential issue

YAML 缩进错误(Test 作业)
test 作业中的多行 run: | 命令同样缺少必要的缩进,建议为以下命令增加额外的空格:

-        run: |
-        corepack enable
-        corepack prepare pnpm@9.15.2 --activate
+        run: |
+          corepack enable
+          corepack prepare pnpm@9.15.2 --activate
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
run: |
corepack enable
corepack prepare pnpm@9.15.2 --activate
run: |
corepack enable
corepack prepare pnpm@9.15.2 --activate


- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install pnpm
run: corepack enable pnpm
run: npm i -g pnpm

- uses: actions/setup-node@v4
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/sync-taro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
- uses: actions/checkout@v4

- name: Install pnpm
run: corepack enable pnpm
run: |
corepack enable
corepack prepare pnpm@10.0.0 --activate

- uses: actions/setup-node@v4
with:
Expand Down