Skip to content

Fix npm package build for docs-only changes - #57719

Closed
cipolleschi wants to merge 1 commit into
mainfrom
fix/skip-npm-package-without-artifacts
Closed

Fix npm package build for docs-only changes#57719
cipolleschi wants to merge 1 commit into
mainfrom
fix/skip-npm-package-without-artifacts

Conversation

@cipolleschi

Copy link
Copy Markdown
Contributor

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

Test Plan:

  • ./node_modules/.bin/prettier --check .github/workflows/test-all.yml
  • Parsed .github/workflows/test-all.yml with Ruby YAML
  • git diff --check

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 28, 2026
@meta-codesync

meta-codesync Bot commented Jul 28, 2026

Copy link
Copy Markdown

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this in D113900588.

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in 3958c7f Jul 28, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jul 28, 2026
@meta-codesync

meta-codesync Bot commented Jul 28, 2026

Copy link
Copy Markdown

@cipolleschi merged this pull request in 3958c7f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants