Commit 6a7b013
fix(ci): enable Corepack for React Native SDK (needs yarn@3.6.1)
The RN SDK declares `packageManager: "yarn@3.6.1"` in package.json, which
requires Corepack rather than the OS-installed Yarn 1.22. Previous CI run
fell through to Yarn 1.22 and failed:
error This project's package.json defines "packageManager": "yarn@3.6.1".
However the current global version of Yarn is 1.22.22.
Fix:
- pr-build.yml sdk_react_native: `corepack enable` before install; prefer
`yarn install --immutable` when the project declares yarn via packageManager.
- package-sdk.sh (RN): same corepack-enable + yarn-preferred logic.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d55ce4a commit 6a7b013
2 files changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| 400 | + | |
| 401 | + | |
400 | 402 | | |
401 | 403 | | |
402 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
403 | 412 | | |
404 | 413 | | |
405 | 414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 | | |
65 | 73 | | |
66 | | - | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
0 commit comments