Skip to content
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

ci: add dry-run mode to production Azure Pipelines #33608

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmytrokirpa
Copy link
Contributor

@dmytrokirpa dmytrokirpa commented Jan 10, 2025

Previous Behavior

Not all production Azure Pipelines supported dryRun mode, meaning they couldn't run without side effects like publishing artifacts to registries.

New Behavior

This PR adds a dryRun parameter to several Azure Pipelines YAML files. Now, you can test the pipeline without making actual changes—super handy for updating the Component Governance report that's only generated in production. The main changes include adding the dryRun parameter, updating conditions to check this parameter, and tweaking or removing existing dry run-related code.

Copy link

github-actions bot commented Jan 10, 2025

📊 Bundle size report

✅ No changes found

Copy link

Pull request demo site: URL

@dmytrokirpa dmytrokirpa marked this pull request as ready for review January 30, 2025 16:01
@dmytrokirpa dmytrokirpa requested a review from a team as a code owner January 30, 2025 16:01
@@ -78,10 +73,10 @@ extends:
displayName: 'Create tarball'
workingDirectory: 'packages/react'

- ${{ if ne(parameters.isTestRun, true) }}:
Copy link
Contributor Author

@dmytrokirpa dmytrokirpa Jan 30, 2025

Choose a reason for hiding this comment

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

Use new dryRun parameter for consistency

@@ -59,11 +57,6 @@ extends:
steps:
- template: .devops/templates/tools.yml@self

- script: |
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to tools.yml


steps:
- template: .devops/templates/tools.yml@self

- script: |
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to tools.yml

@@ -128,7 +124,7 @@ extends:
- script: |
yarn publish:beachball -n $(npmToken) --config scripts/beachball/src/release-v8.config.js --message 'release: applying package updates - react v8'
git reset --hard origin/master
condition: eq(variables.skipPublish, false)
condition: eq(parameters.dryRun, false)
Copy link
Contributor Author

@dmytrokirpa dmytrokirpa Jan 30, 2025

Choose a reason for hiding this comment

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

used dryRun for consistency

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

Successfully merging this pull request may close these issues.

1 participant