Repository navigation
ci: place the native binaries without napi artifacts when platforms are skipped - #248
Conversation
…re skipped
Since macOS native builds are skipped on pull requests that do not touch macOS
code, the install smoke runs the release-artifact layout without the darwin
binaries. `napi artifacts` aborts in that case ("Missing artifacts for
configured targets: x86_64-apple-darwin ..."), so the Ubuntu and Windows smoke
legs failed on every such pull request. When `skip-platforms` is set, move each
`<name>-native.<platform>.node` into `npm/<platform>/` directly, which is the
name and the directory `napi artifacts` uses; releases and previews leave the
input empty and still go through `napi artifacts`, which requires every target.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
PR Summary by QodoFix native artifact placement when CI skips platforms
AI Description
Merge Risk
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent |
|
Thank you for following the naming conventions! 🙏 |
Problem
After #235 the macOS native builds are skipped on pull requests into
nextthat do not touch macOS code. The install smoke then fails on the Ubuntu and Windows legs at the "Native release artifacts" step:napi artifactsrequires a binary for every configured target. #235's PR body listed this as unverified ("napi artifactswith no darwin.nodefiles"). Seen on #244.Fix
In
.github/actions/native-release-artifacts/action.yml, whenskip-platformsis set the step moves each<name>-native.<platform>.nodeintopackages/<pkg>/npm/<platform>/itself (the file name and directorynapi artifactsuses). Releases and previews leave the input empty and keep going throughnapi artifacts, so they still require every target. The following "Verify platform packages are complete" step already honoursskip-platforms.Verified
vis-native.linux-x64-gnu.nodefile: it ends atpackages/tooling/vis/npm/linux-x64-gnu/vis-native.linux-x64-gnu.node.zizmor: no findings.actionlintcan only check workflows, not a composite action.Not verified here: a real Actions run. Check on a PR that skips macOS (for example this one, a docs-style change under
.github/... note this file is not on the macOS path list): the Ubuntu and Windows smoke legs should pass the "Native release artifacts" step.🤖 Generated with Claude Code