Commit 3958c7f
Fix npm package build for docs-only changes (#57719)
Summary:
The build_npm_package job uses always() so it can run when one platform-specific prerequisite is skipped. However, that also caused it to run when every artifact-producing prerequisite was skipped, as happens for Markdown-only pull requests. It then failed because there were no artifacts to download.
Require at least one Android or Apple artifact-producing prerequisite to have succeeded before running the package build.
Failing run: https://github.com/react/react-native/actions/runs/30290299313/job/90058215494?pr=57703
## Changelog:
[INTERNAL] [FIXED] - Skip the npm package build when all artifact-producing prerequisites are skipped
Pull Request resolved: #57719
Test Plan:
- ./node_modules/.bin/prettier --check .github/workflows/test-all.yml
- Parsed .github/workflows/test-all.yml with Ruby YAML
- git diff --check
Reviewed By: cortinico
Differential Revision: D113900588
Pulled By: cipolleschi
fbshipit-source-id: f6979ca48b44cf807bf4db12e3c0106d720a9cb11 parent 5465647 commit 3958c7f
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
329 | 332 | | |
330 | 333 | | |
331 | 334 | | |
| |||
0 commit comments