Skip to content

[eas-cli] Add --link-project-id flag to eas build - #4138

Draft
williamgrosset wants to merge 1 commit into
mainfrom
williamgrosset/build-link-project-id
Draft

[eas-cli] Add --link-project-id flag to eas build#4138
williamgrosset wants to merge 1 commit into
mainfrom
williamgrosset/build-link-project-id

Conversation

@williamgrosset

@williamgrosset williamgrosset commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Why

Users/agents should be able to assert which EAS project a build should belong to.

How

  • Added --link-project-id <id> to eas build to link the directory to an existing project before building, like eas init --id (writes extra.eas.projectId). Supports non-interactive: eas build -p ios --link-project-id <id> --non-interactive.
  • Default is an assertion: if the config already points at a different project (or the owner/slug conflict), the build fails in non-interactive mode without --force; interactively it prompts to overwrite. --force deliberately relinks.

Test Plan

Manually verified an EAS project is successfully linked and eas build continues it's execution:

link-project-id-flag.mov

@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.53%. Comparing base (eab32ec) to head (4c5d06f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4138      +/-   ##
==========================================
+ Coverage   62.43%   62.53%   +0.11%     
==========================================
  Files        1009     1009              
  Lines       45737    45753      +16     
  Branches     9622     9627       +5     
==========================================
+ Hits        28550    28608      +58     
+ Misses      15726    15690      -36     
+ Partials     1461     1455       -6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@williamgrosset
williamgrosset force-pushed the williamgrosset/build-link-project-id branch from 52f1ecf to 4c5d06f Compare August 4, 2026 20:48
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

✅ Thank you for adding the changelog entry!

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.

1 participant