Skip to content

Commit 5bde26b

Browse files
authored
Update workflow
workflow 里有 yarn set version stable — 自动拉最新 Yarn (现在是 4.14.1),超出 packageManager: yarn@4.13.0 pin,4.14 的 lockfile schema 升到 v9,immutable mode 拒绝迁移。 这不是我的 PR 引入的,是仓库 CI flake —— 自 2026-04-15 main 最后一次绿灯后,Yarn 4.14 发布就会触发。任何新 PR 都会中招。 修复最小化:workflow 里去掉 yarn set version stable,让 corepack 用 packageManager 字段固定的 yarn@4.13.0(跟仓库 lockfile v8 匹配)。提交到同一个 PR。
1 parent 1fc0140 commit 5bde26b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ jobs:
4545
node-version: '20' # 可根据项目调整
4646

4747
- name: Setup Yarn
48-
run: |
49-
corepack enable
50-
yarn set version stable
48+
run: corepack enable
5149

5250
# - name: Upgrade dependencies
5351
# run: |
@@ -82,4 +80,4 @@ jobs:
8280
uses: ad-m/github-push-action@master
8381
with:
8482
branch: ${{ github.ref }}
85-
github_token: ${{ secrets.KNOWLEDGE_SECRET }}
83+
github_token: ${{ secrets.KNOWLEDGE_SECRET }}

0 commit comments

Comments
 (0)