Skip to content

ci(0.76): check publish_react_native_macos with a runtime condition #2311

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 2 commits into from
Dec 5, 2024

Conversation

Saadnajmi
Copy link
Collaborator

@Saadnajmi Saadnajmi commented Dec 5, 2024

Summary:

The syntax ${{ variables.foo }} in Azure Pipelines yml is only valid for template variables. For our npm-publish.yml steps, we are setting a runtime variable, so it cannot be accessed in a ${{ }} in a successive steps' condition. We can fix this by slightly refactoring the condition so that it now evaluates at runtime. The solution was taken from here: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops&tabs=yaml#variables-created-in-a-step-used-in-subsequent-step-conditions

While we're at it, let's add the --verbose flag too.

Test Plan:

CI should pass

@Saadnajmi Saadnajmi requested a review from a team as a code owner December 5, 2024 07:41
@Saadnajmi Saadnajmi changed the title [Test] ci(0.76): add logging to prepublish-check.mjs ci(0.76): update isStableBranch regex in prepublish-check to search end of string Dec 5, 2024
@Saadnajmi Saadnajmi requested a review from tido64 December 5, 2024 07:53
tido64
tido64 previously requested changes Dec 5, 2024
@Saadnajmi Saadnajmi force-pushed the 0.76/publish-3 branch 3 times, most recently from d352f63 to 05b4773 Compare December 5, 2024 22:36
@Saadnajmi Saadnajmi changed the title ci(0.76): update isStableBranch regex in prepublish-check to search end of string ci(0.76): check publish_react_native_macos with a runtime condition Dec 5, 2024
@Saadnajmi Saadnajmi requested a review from tido64 December 5, 2024 23:19
@Saadnajmi Saadnajmi dismissed tido64’s stale review December 5, 2024 23:19

PR updated heavily

@Saadnajmi Saadnajmi merged commit cabeded into microsoft:0.76-stable Dec 5, 2024
10 checks passed
@Saadnajmi Saadnajmi deleted the 0.76/publish-3 branch December 5, 2024 23:19
@Saadnajmi Saadnajmi mentioned this pull request May 1, 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