Commit 1639731
fix: pre-download node-gyp headers to avoid install race condition (#2672)
## Summary
- Adds `npx node-gyp install` before every `yarn install` in CI
workflows
- This pre-downloads Node.js headers so that multiple native addon
compilations during `yarn install` don't race to download the same
headers simultaneously
## Files changed
- `.github/workflows/ci.yml` - added `npx node-gyp install` before `yarn
install`
- `.github/workflows/release-packages.yml` - added `npx node-gyp
install` before `yarn install`
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on updating the installation process for dependencies in
continuous integration workflows and modifying the version of `node-gyp`
used in the project.
### Detailed summary
- In `.github/workflows/ci.yml`:
- Changed the installation command to use `npx node-gyp@12.2.0 install`
before `yarn install`.
- Updated the `node-gyp` version in `packages/core/package.json` from
`^9.4.0` to `12.2.0`.
- In `.github/workflows/release-packages.yml`:
- Similar changes to the installation command as in `ci.yml`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`
<!-- end pr-codex -->
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 305aef8 commit 1639731
File tree
3 files changed
+7
-3
lines changed- .github/workflows
- packages/core
3 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments