-
Notifications
You must be signed in to change notification settings - Fork 399
Migrate to ESRP publishing #9189
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
Merged
Merged
Changes from 55 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
8cfc3fd
use esrp publishing
timotheeguerin 25bc6f1
.
timotheeguerin 6ec52fd
fix
timotheeguerin ebb9def
abc
timotheeguerin d8a91eb
speed up for testing
timotheeguerin 313cf72
abc
timotheeguerin 44aab72
f
timotheeguerin 69e70e7
tweaks
timotheeguerin 9ac204b
try this
timotheeguerin 0a8b4bc
tweaks
timotheeguerin 75f6dd9
abc
timotheeguerin 6be8cdb
abc
timotheeguerin bbf5841
try this
timotheeguerin 7ed9aa0
move
timotheeguerin 431a646
fix
timotheeguerin 29a2053
should work now
timotheeguerin 21f93a3
try this
timotheeguerin 48b6885
tweaks
timotheeguerin d3dca2c
fix
timotheeguerin 1f35f5f
try this
timotheeguerin 32f4a43
f
timotheeguerin b215af5
f
timotheeguerin cadc33f
abc
timotheeguerin 397af47
try
timotheeguerin 6d2b5df
rename
timotheeguerin 32325fe
simplify
timotheeguerin 6918fec
checkout self
timotheeguerin 887af5a
optimize
timotheeguerin 260371c
tweak condition
timotheeguerin ae1087a
.
timotheeguerin 44d32fc
fox
timotheeguerin cf03ce8
tweaks
timotheeguerin fc2436d
.
timotheeguerin 21e5ecf
f
timotheeguerin 7f837bb
f
timotheeguerin 092f325
abc
timotheeguerin b1bbc04
abc
timotheeguerin c4cf3a9
tweaks
timotheeguerin 7731676
fix
timotheeguerin 3d853c7
abc
timotheeguerin 5ecd482
fix_
timotheeguerin eb66bce
test
timotheeguerin 0842b64
abc
timotheeguerin 72aaaab
test this
timotheeguerin a5a461b
this way
timotheeguerin a177070
tweaks
timotheeguerin f2b3da8
test
timotheeguerin 2a06f18
test
timotheeguerin 1d882f6
abc
timotheeguerin 9a9dc75
test
timotheeguerin e838c93
progress
timotheeguerin 379851e
abc
timotheeguerin 01af002
test
timotheeguerin 986601c
try this
timotheeguerin c692407
revert
timotheeguerin f0d08e8
abc
timotheeguerin 3710baa
ignore cspell
timotheeguerin 29447c4
Update eng/tsp-core/pipelines/jobs/publish-npm.yml
timotheeguerin b403129
Update eng/tsp-core/pipelines/jobs/create-github-release.yml
timotheeguerin e20efc7
Merge branch 'main' into esrp-publish
timotheeguerin e6dfb89
revert test
timotheeguerin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
timotheeguerin marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| parameters: | ||
| - name: artifactName | ||
| type: string | ||
| - name: dependsOn | ||
| type: string | ||
| default: "" | ||
|
|
||
| jobs: | ||
| - job: build | ||
|
timotheeguerin marked this conversation as resolved.
Outdated
|
||
| dependsOn: ${{ parameters.dependsOn }} | ||
| displayName: Create github release(s) | ||
| pool: | ||
| name: azsdk-pool | ||
| image: ubuntu-24.04 | ||
| os: linux | ||
|
|
||
| steps: | ||
| - download: current | ||
| artifact: ${{ parameters.artifactName }} | ||
| displayName: Download package manifest | ||
|
|
||
| - template: /eng/tsp-core/pipelines/templates/install.yml | ||
|
|
||
| - script: | | ||
| echo "Publish summary:" | ||
| cat "$(Pipeline.Workspace)/${{ parameters.artifactName }}/publish-summary.json" | ||
| displayName: Log publish summary | ||
|
|
||
| - script: pnpm chronus-github create-releases --repo microsoft/typespec --publish-summary "$(Pipeline.Workspace)/${{ parameters.artifactName }}/publish-summary.json" | ||
| displayName: Create github releases | ||
| env: | ||
| GITHUB_TOKEN: $(azuresdk-github-pat) | ||
|
timotheeguerin marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Template installing all dependencies. | ||
| parameters: | ||
| - name: artifactName | ||
| type: string | ||
| - name: name | ||
| type: string | ||
|
|
||
| steps: | ||
| - pwsh: | | ||
| $outDir = "$(Build.ArtifactStagingDirectory)/${{ parameters.artifactName }}" | ||
| echo "Packing npm packages into $outDir" | ||
| pnpm chronus pack --exclude standalone --pack-destination $outDir | ||
|
|
||
| $summaryFilePath = "$outDir/publish-summary.json" | ||
| echo "Create manifest of unpublished packages in $summaryFilePath" | ||
|
|
||
| node eng/tsp-core/scripts/filter-unpublished-packages.ts "$outDir" --manifest $summaryFilePath | ||
| name: pack_${{ parameters.name }} | ||
| displayName: Pack packages ${{ parameters.artifactName }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| parameters: | ||
| - name: tag | ||
| type: string | ||
| default: stable | ||
| - name: path | ||
| type: string | ||
|
|
||
| steps: | ||
| - task: EsrpRelease@9 | ||
| displayName: "Publish via ESRP" | ||
| condition: and(succeeded(), ne(variables['SkipPublishing'], 'true')) | ||
| inputs: | ||
| ConnectedServiceName: "Azure SDK PME Managed Identity" | ||
| ClientId: "5f81938c-2544-4f1f-9251-dd9de5b8a81b" | ||
| DomainTenantId: "975f013f-7f24-47e8-a7d3-abc4752bf346" | ||
| Usemanagedidentity: true | ||
| KeyVaultName: "kv-azuresdk-codesign" | ||
| SignCertName: "azure-sdk-esrp-release-certificate" | ||
| Intent: "PackageDistribution" | ||
| ContentType: "npm" | ||
| FolderLocation: ${{ parameters.path }} | ||
| Owners: ${{ coalesce(variables['Build.RequestedForEmail'], 'azuresdk@microsoft.com') }} | ||
| Approvers: ${{ coalesce(variables['Build.RequestedForEmail'], 'azuresdk@microsoft.com') }} | ||
| ServiceEndpointUrl: "https://api.esrp.microsoft.com" | ||
| MainPublisher: "ESRPRELPACMANTEST" | ||
| productstate: ${{ parameters.tag }} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.