Skip to content

eng, use ESRP for typespec-java release#3324

Merged
weidongxu-microsoft merged 4 commits intomainfrom
eng_esrp-release
Apr 20, 2026
Merged

eng, use ESRP for typespec-java release#3324
weidongxu-microsoft merged 4 commits intomainfrom
eng_esrp-release

Conversation

@weidongxu-microsoft
Copy link
Copy Markdown
Member

@weidongxu-microsoft weidongxu-microsoft commented Apr 15, 2026

we may want to add the "publish to devop" step too
microsoft/typespec#10292

combined test branch https://github.com/Azure/autorest.java/tree/eng_cfs%2Besrp

@weidongxu-microsoft weidongxu-microsoft marked this pull request as ready for review April 15, 2026 05:25
@weidongxu-microsoft weidongxu-microsoft marked this pull request as draft April 15, 2026 05:25
@weidongxu-microsoft weidongxu-microsoft marked this pull request as ready for review April 15, 2026 07:59
Comment on lines +68 to +71
- pwsh: |
New-Item -ItemType Directory -Path "$(buildArtifactsPath)/packages" -Force
Copy-Item -Path "./typespec-extension/*.tgz" -Destination "$(buildArtifactsPath)/packages"
displayName: 'Copy packages to artifacts staging directory'
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Add step to create $(buildArtifactsPath)/packages and copy package there.

Comment on lines +73 to +87
# Always publish to internal feed
- template: /eng/pipelines/templates/steps/create-authenticated-npmrc.yml
parameters:
npmrcPath: $(buildArtifactsPath)/packages/.npmrc
registryUrl: https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/

# publish to devops feed
- pwsh: |
$packageFiles = Get-ChildItem -Path . -Filter '*.tgz'
foreach ($file in $packageFiles.Name) {
Write-Host "npm publish $file --verbose --access public"
npm publish $file --verbose --access public
}
displayName: Publish to DevOps feed
workingDirectory: $(buildArtifactsPath)/packages
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Add step to publish to DevOps feed (same as microsoft/typespec)

@weidongxu-microsoft
Copy link
Copy Markdown
Member Author

Copy-Item -Path "./typespec-extension/*.tgz" -Destination "$(buildArtifactsPath)/packages"
displayName: 'Copy packages to artifacts staging directory'

# Always publish to internal feed
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: change comment to something like "create npmrc file with auth" to avoid confusion.

@weidongxu-microsoft weidongxu-microsoft merged commit e90d412 into main Apr 20, 2026
3 checks passed
@weidongxu-microsoft weidongxu-microsoft deleted the eng_esrp-release branch April 20, 2026 02:28
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.

2 participants