Skip to content

ci(0.76): more publish pipeline fixes #2318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

Saadnajmi
Copy link
Collaborator

@Saadnajmi Saadnajmi commented Dec 6, 2024

Summary:

A couple of fixes:

  1. nx release won't publish react-native-macos because we use Yarn with what they call a local dependency protocol (AKA: workspace:* in our package.json for react-native-macos). nx thinks that Yarn doesn't support this, but it has since Yarn 2+. This is a bug in nx, and I've filed nx-release doesn't release packages using a local dependency protocol when using modern yarn nrwl/nx#29242 . Meanwhile, let's just remove the use that protocol to unblock publish.

  2. nx release creates a graph of dependent tasks for it's command nx-release-publish. This seems to be include publishing a bunch of other packages (You can see the graph with nx graph, I've also pasted it here). There's an --excludeTaskDependencies option for nx release publish (the subcommand) but not nx release. So.. I'm splitting the command into 2: Run nx release and skip publish, then run nx release publish separately.

@Saadnajmi Saadnajmi requested a review from a team as a code owner December 6, 2024 21:25
@Saadnajmi Saadnajmi changed the title chore(0.76): don't use workspace:* dependencies in react-native-macos ci(0.76): more publish pipeline fixes Dec 6, 2024
@Saadnajmi Saadnajmi force-pushed the 0.76/publish-4 branch 2 times, most recently from 91bc04a to 8e7ef18 Compare December 7, 2024 01:41
@tido64
Copy link
Member

tido64 commented Dec 9, 2024

/azp run

Copy link

Azure Pipelines failed to run 1 pipeline(s).

@Saadnajmi Saadnajmi merged commit 9c1d4be into microsoft:0.76-stable Dec 9, 2024
10 checks passed
@Saadnajmi Saadnajmi deleted the 0.76/publish-4 branch December 9, 2024 18:02
@Saadnajmi Saadnajmi restored the 0.76/publish-4 branch December 9, 2024 18:02
@Saadnajmi Saadnajmi deleted the 0.76/publish-4 branch January 15, 2025 18:09
@JamesHenry
Copy link

Hi Folks,

I responded on the issue, hopefully that helps clarify the distinction here: nrwl/nx#29242 (comment)

@Saadnajmi Saadnajmi mentioned this pull request Apr 25, 2025
4 tasks
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