Skip to content

Commit

Permalink
Set publish to internal for non-main branch trigger (#4687)
Browse files Browse the repository at this point in the history
For non-main branch, we should release to internal npm feed instead of
public.
  • Loading branch information
live1206 authored Oct 16, 2024
1 parent 9d769f7 commit ca9930e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/http-client-csharp/eng/pipeline/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extends:
parameters:
BuildPrereleaseVersion: true
UseTypeSpecNext: false
Publish: "public"
Publish: ${{replace(replace('True',eq(variables['Build.SourceBranchName'], 'main'), 'public'),'True','internal')}}
PublishDependsOnTest: true
PackagePath: /packages/http-client-csharp
EmitterPackageJsonPath: packages/http-client-csharp/package.json
Expand Down

0 comments on commit ca9930e

Please sign in to comment.