Skip to content

Commit e1bfaa5

Browse files
fix: strip packageManager field in test job before setup-js
setup-js passes version:latest to pnpm/action-setup which conflicts with the packageManager field. Quality job uses pnpm/action-setup directly (reads the field correctly). Test job strips it at runtime.
1 parent 169b2d8 commit e1bfaa5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ jobs:
4848
steps:
4949
- uses: actions/checkout@v4
5050

51-
- name: Remove lockfile
52-
run: rm pnpm-lock.yaml
51+
- name: Remove lockfile and packageManager field
52+
run: |
53+
rm pnpm-lock.yaml
54+
node -e "const p=require('./package.json'); delete p.packageManager; require('fs').writeFileSync('package.json', JSON.stringify(p, null, 2) + '\n')"
5355
shell: bash
5456

5557
- name: Install panam

0 commit comments

Comments
 (0)