Skip to content

Commit c77e38a

Browse files
authored
Fix[0.82]: Enable auto-install for npx beachball in CI pipelines (#15560)
* update package.json to RN 0.82.0-rc-0 and removed SDL check for 4996 deprecation warning * fix(ci): add --yes flag to npx beachball commands for non-interactive install
1 parent 4a9e2fa commit c77e38a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.ado/jobs/setup.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ jobs:
3636
displayName: Build @rnw-scripts/beachball-config
3737

3838
- pwsh: |
39-
npx beachball check --branch origin/$(BeachBallBranchName) --verbose 2>&1 | Tee-Object -Variable beachballOutput
39+
npx --yes beachball check --branch origin/$(BeachBallBranchName) --verbose 2>&1 | Tee-Object -Variable beachballOutput
4040
$beachballErrors = $beachballOutput | Where-Object { $_ -match "ERROR: *"}
4141
$beachballErrors | ForEach { Write-Host "##vso[task.logissue type=warning]POSSIBLE $_" }
4242
displayName: Warn for possible invalid change files
4343
4444
- ${{ if endsWith(parameters.buildEnvironment, 'PullRequest') }}:
45-
- script: npx beachball check --branch origin/$(BeachBallBranchName) --verbose --changehint "##vso[task.logissue type=error]Run \"yarn change\" from root of repo to generate a change file."
45+
- script: npx --yes beachball check --branch origin/$(BeachBallBranchName) --verbose --changehint "##vso[task.logissue type=error]Run \"yarn change\" from root of repo to generate a change file."
4646
displayName: Check for change files
4747

48-
- script: npx beachball bump --branch origin/$(BeachBallBranchName) --yes --verbose
48+
- script: npx --yes beachball bump --branch origin/$(BeachBallBranchName) --yes --verbose
4949
displayName: beachball bump
5050

5151
- template: ../templates/set-version-vars.yml

.ado/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ extends:
142142
displayName: Fix missing npm config
143143

144144
- pwsh: |
145-
npx beachball check --verbose 2>&1 | Tee-Object -Variable beachballOutput
145+
npx --yes beachball check --verbose 2>&1 | Tee-Object -Variable beachballOutput
146146
$beachballErrors = $beachballOutput | Where-Object { $_ -match "ERROR: *"}
147147
$beachballErrors | ForEach { Write-Host "##vso[task.logissue type=error]$_" }
148148
if ( $beachballErrors.Count -gt 0) { throw "Beachball check found $($beachballErrors.Count) errors." }
@@ -175,7 +175,7 @@ extends:
175175
- script: |
176176
if exist "$(Pipeline.Workspace)\published-packages" rd /s /q "$(Pipeline.Workspace)\published-packages"
177177
mkdir "$(Pipeline.Workspace)\published-packages"
178-
npx beachball publish --no-publish $(SkipGitPushPublishArgs) --pack-to-path "$(Pipeline.Workspace)\published-packages" --branch origin/$(SourceBranchWithFolders) -yes --bump-deps --verbose --access public --message "applying package updates ***NO_CI***"
178+
npx --yes beachball publish --no-publish $(SkipGitPushPublishArgs) --pack-to-path "$(Pipeline.Workspace)\published-packages" --branch origin/$(SourceBranchWithFolders) -yes --bump-deps --verbose --access public --message "applying package updates ***NO_CI***"
179179
displayName: Beachball Publish
180180
181181
- script: dir /s "$(Pipeline.Workspace)\published-packages"

.ado/templates/verdaccio-start.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
- template: compute-beachball-branch-name.yml
1818

1919
- ${{ if eq(parameters.beachballPublish, true) }}:
20-
- script: npx beachball bump --branch origin/$(BeachBallBranchName) --no-push --yes --verbose --changehint "Run `yarn change` from root of repo to generate a change file."
20+
- script: npx --yes beachball bump --branch origin/$(BeachBallBranchName) --no-push --yes --verbose --changehint "Run `yarn change` from root of repo to generate a change file."
2121
displayName: Beachball bump versions
2222

2323
- script: node .ado/scripts/npmPack.js --clean --no-color

0 commit comments

Comments
 (0)