Skip to content

Remove --non-interactive flags from build scripts#357

Merged
robertherber merged 1 commit into
masterfrom
claude/exciting-meitner-MbtwT
Jun 5, 2026
Merged

Remove --non-interactive flags from build scripts#357
robertherber merged 1 commit into
masterfrom
claude/exciting-meitner-MbtwT

Conversation

@robertherber

Copy link
Copy Markdown
Member

Summary

Removes the --non-interactive flag from Expo prebuild and Metro bundler commands, replacing it with the CI=1 environment variable for the Metro bundler to better align with standard CI/CD practices.

Changes

  • Expo prebuild: Removed --non-interactive flag from the iOS prebuild command in the GitHub Actions workflow
  • Metro bundler: Replaced --non-interactive flag with CI=1 environment variable in the HealthKit contracts test script

Details

These changes modernize the build configuration by:

  1. Using environment-based signaling (CI=1) instead of command-line flags for CI detection in Metro
  2. Allowing Expo prebuild to operate with its default behavior in non-interactive environments
  3. Following standard conventions where the CI environment variable is the canonical way to indicate a continuous integration context

https://claude.ai/code/session_01Kd5nY1iNaeEsUNSF76z1bN

--non-interactive is deprecated in newer Expo CLI versions; the
recommended replacement is setting CI=1 (or CI=true) in the environment.
GitHub Actions already sets CI=true, so expo prebuild just needs the
flag removed; the start script explicitly sets CI=1 to be safe.

https://claude.ai/code/session_01Kd5nY1iNaeEsUNSF76z1bN
Copilot AI review requested due to automatic review settings June 5, 2026 07:02
@changeset-bot

changeset-bot Bot commented Jun 5, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 31d65ed

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jun 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/kingstinct/react-native-healthkit/@kingstinct/react-native-healthkit@357

commit: 31d65ed

Copilot AI 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.

Pull request overview

This PR updates CI/build scripts to avoid using Expo CLI’s --non-interactive flag and instead rely on CI-style environment signaling (and default non-interactive behavior in CI environments).

Changes:

  • Updated the HealthKit contracts runner to start the Expo/Metro dev server without --non-interactive, using CI=1 for non-interactive execution.
  • Updated the GitHub Actions iOS prebuild step to run expo prebuild without --non-interactive.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/example/scripts/run-healthkit-contracts.sh Starts the dev server without --non-interactive, using CI=1 for non-interactive behavior during contract runs.
.github/workflows/test.yml Removes --non-interactive from the iOS expo prebuild step in CI.

@robertherber robertherber merged commit efa0523 into master Jun 5, 2026
9 checks passed
@robertherber robertherber deleted the claude/exciting-meitner-MbtwT branch June 5, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants