Skip to content

Commit 23216eb

Browse files
committed
ci(release): refactor Azure Pipelines to use new workflow
1 parent 022a862 commit 23216eb

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.ado/azure-pipelines.publish.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,7 @@ extends:
7171
- template: .ado/templates/setup-repo.yml@self
7272

7373
- script: |
74-
git config user.name "UI-Fabric-RN-Bot"
75-
git config user.email "uifrnbot@microsoft.com"
76-
git remote set-url origin https://$(githubUser):$(githubPAT)@github.com/microsoft/fluentui-react-native.git
77-
displayName: Git Authentication
78-
79-
- script: |
80-
yarn
74+
yarn install --immutable
8175
displayName: 'yarn install'
8276
8377
- script: |
@@ -90,20 +84,11 @@ extends:
9084
condition: ${{ parameters.skipNpmPublish }}
9185
9286
- script: |
93-
echo ##vso[task.setvariable variable=SkipGitPushPublishArgs]--no-push
94-
displayName: Enable No-Publish (git)
95-
condition: ${{ parameters.skipGitPush }}
96-
97-
- script: |
98-
yarn publish:beachball $(SkipNpmPublishArgs) $(SkipGitPushPublishArgs) --access public --token $(npmAuth) -b origin/main -y
87+
# Use --no-bump and --no-push because versions have already been committed by Github Actions earlier
88+
npx beachball publish --no-bump --no-push $(SkipNpmPublishArgs) --access public --token $(npmAuth) -y --verbose
9989
displayName: 'Publish NPM Packages (for main branch)'
10090
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
10191
102-
- script: |
103-
yarn publish:beachball $(SkipNpmPublishArgs) $(SkipGitPushPublishArgs) --access public --token $(npmAuth) -y -t v${{ replace(variables['Build.SourceBranch'],'refs/heads/releases/','') }} -b origin/${{ replace(variables['Build.SourceBranch'],'refs/heads/','') }} --prerelease-prefix ${{ replace(variables['Build.SourceBranch'],'refs/heads/releases/','') }}
104-
displayName: 'Publish NPM Packages (for other release branches)'
105-
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/main'))
106-
10792
- template: .ado/templates/win32-nuget-publish.yml@self
10893
parameters:
10994
skipNugetPublish: ${{ parameters.skipNugetPublish }}

0 commit comments

Comments
 (0)