Skip to content

Commit 455a2d4

Browse files
committed
ci: plugin-doctor 安装策略修正(npm 优先 + pnpm 钉 11.7.0,双锁仓移除陈旧 pnpm-lock)
1 parent 76f3db8 commit 455a2d4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/plugin-doctor.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: pnpm/action-setup@v4
18-
if: hashFiles('pnpm-lock.yaml') != ''
18+
if: hashFiles('pnpm-lock.yaml') != '' && hashFiles('package-lock.json') == ''
19+
with:
20+
version: 11.7.0
1921
- uses: actions/setup-node@v4
2022
with:
2123
node-version: 22
2224
- name: Install
2325
run: |
24-
if [ -f pnpm-lock.yaml ]; then pnpm install --frozen-lockfile
25-
elif [ -f package-lock.json ]; then npm ci
26+
if [ -f package-lock.json ]; then npm ci
27+
elif [ -f pnpm-lock.yaml ]; then pnpm install --frozen-lockfile
2628
else npm install --no-audit --no-fund
2729
fi
2830
- name: Build (if present)

0 commit comments

Comments
 (0)