Skip to content
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

[DO NOT MERGE] Initial check-in for supporting telemetry in vscode #6123

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
comment more for testing
  • Loading branch information
RodgeFu committed Feb 27, 2025
commit 94764ccc2c1b671a04cbdf6c2dee9caa9ece9dd3
85 changes: 43 additions & 42 deletions eng/tsp-core/pipelines/jobs/build-for-publish.yml
Original file line number Diff line number Diff line change
@@ -12,16 +12,17 @@ jobs:

- script: pnpm run update-telemetry-key $(vscode.telemetryKey)
workingDirectory: $(Build.SourcesDirectory)/packages/typespec-vscode
displayName: Update vscode telemetry key

- template: /eng/tsp-core/pipelines/templates/build.yml

- script: pnpm run test:ci
displayName: Test

- template: /eng/tsp-core/pipelines/templates/upload-coverage.yml
# - template: /eng/tsp-core/pipelines/templates/upload-coverage.yml

- script: pnpm chronus pack --exclude standalone --pack-destination $(Build.ArtifactStagingDirectory)/npm-packages-stable
displayName: Pack packages
# - script: pnpm chronus pack --exclude standalone --pack-destination $(Build.ArtifactStagingDirectory)/npm-packages-stable
# displayName: Pack packages

- task: CopyFiles@2
displayName: "Copy VSCode extension .vsix to artifact directory"
@@ -30,45 +31,45 @@ jobs:
Contents: "*.vsix"
TargetFolder: "$(Build.ArtifactStagingDirectory)/vscode-extension"

- task: CopyFiles@2
displayName: "Copy VS extension .vsix to artifact directory"
inputs:
SourceFolder: "$(Build.SourcesDirectory)/packages/typespec-vs"
Contents: "*.vsix"
TargetFolder: "$(Build.ArtifactStagingDirectory)/vs-extension"

- task: AzureCLI@1
displayName: "Publish bundled packages to package storage"
inputs:
azureSubscription: "Azure SDK Engineering System"
scriptLocation: inlineScript
inlineScript: node ./eng/tsp-core/scripts/upload-bundler-packages.js

# Update version for next version publish
- script: node ./packages/internal-build-utils/cmd/cli.js bump-version-preview .
displayName: Bump version to prerelease targets

- script: npm run gen-manifest
displayName: Regen manifest for compiler
workingDirectory: ./packages/compiler

- script: pnpm chronus pack --exclude standalone --pack-destination $(Build.ArtifactStagingDirectory)/npm-packages-next
displayName: Pack next packages

# Publish Next playground
- task: AzureCLI@1
displayName: "Publish playground"
inputs:
azureSubscription: "Azure SDK Engineering System"
scriptLocation: inlineScript
inlineScript: |
az storage blob upload-batch ^
--auth-mode login ^
--destination $web ^
--account-name "cadlplayground" ^
--destination-path / ^
--source "./packages/playground-website/dist/web/" ^
--overwrite
# - task: CopyFiles@2
# displayName: "Copy VS extension .vsix to artifact directory"
# inputs:
# SourceFolder: "$(Build.SourcesDirectory)/packages/typespec-vs"
# Contents: "*.vsix"
# TargetFolder: "$(Build.ArtifactStagingDirectory)/vs-extension"

# - task: AzureCLI@1
# displayName: "Publish bundled packages to package storage"
# inputs:
# azureSubscription: "Azure SDK Engineering System"
# scriptLocation: inlineScript
# inlineScript: node ./eng/tsp-core/scripts/upload-bundler-packages.js

# # Update version for next version publish
# - script: node ./packages/internal-build-utils/cmd/cli.js bump-version-preview .
# displayName: Bump version to prerelease targets

# - script: npm run gen-manifest
# displayName: Regen manifest for compiler
# workingDirectory: ./packages/compiler

# - script: pnpm chronus pack --exclude standalone --pack-destination $(Build.ArtifactStagingDirectory)/npm-packages-next
# displayName: Pack next packages

# # Publish Next playground
# - task: AzureCLI@1
# displayName: "Publish playground"
# inputs:
# azureSubscription: "Azure SDK Engineering System"
# scriptLocation: inlineScript
# inlineScript: |
# az storage blob upload-batch ^
# --auth-mode login ^
# --destination $web ^
# --account-name "cadlplayground" ^
# --destination-path / ^
# --source "./packages/playground-website/dist/web/" ^
# --overwrite

templateContext:
outputs:
2 changes: 1 addition & 1 deletion eng/tsp-core/pipelines/publish.yml
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ extends:

jobs:
- template: /eng/tsp-core/pipelines/jobs/build-for-publish.yml@self
- template: /eng/tsp-core/pipelines/jobs/cli/build-tsp-cli-all.yml@self
# - template: /eng/tsp-core/pipelines/jobs/cli/build-tsp-cli-all.yml@self

# - stage: publish_npm
# displayName: Publish Npm Packages
Loading
Oops, something went wrong.