Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/build/azure-pipelines/product-copilot-recovery.yml
13379 views
1
name: $(Date:yyyyMMdd)$(Rev:.r)
2
3
trigger: none
4
pr: none
5
6
resources:
7
repositories:
8
- repository: templates
9
type: github
10
name: microsoft/vscode-engineering
11
ref: main
12
endpoint: Monaco
13
14
parameters:
15
- name: customNPMRegistry
16
displayName: Custom NPM Registry (Terrapin)
17
type: boolean
18
default: true
19
- name: publishExtension
20
displayName: Publish Stable Recovery Extension
21
type: boolean
22
default: false
23
24
variables:
25
- name: VSCODE_QUALITY
26
value: stable
27
28
extends:
29
template: azure-pipelines/extension/stable.yml@templates
30
parameters:
31
workingDirectory: ./extensions/copilot
32
l10nSourcePaths: ./extensions/copilot/src
33
nodeVersion: 22.21.x
34
35
cgIgnoreDirectories: $(Build.SourcesDirectory)/extensions/copilot/script
36
37
# Suppress false positive strings SG.default.* that show up in
38
# dist/extension.js after the build. The original strings come from ora.
39
vscePackageArgs: '--allow-package-secrets sendgrid'
40
41
buildSteps:
42
- ${{ if eq(parameters.publishExtension, true) }}:
43
- ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')) }}:
44
- script: |
45
echo "##vso[task.logissue type=error]publishExtension requires a release/* branch"
46
exit 1
47
displayName: Validate release branch
48
49
- template: copilot/setup-steps.yml
50
- template: copilot/build-steps.yml
51
52
uploadSourceMaps:
53
enabled: true
54
55
testSteps:
56
- checkout: self
57
lfs: true
58
- template: copilot/setup-steps.yml
59
- template: copilot/test-steps.yml
60
61
tsa:
62
config:
63
areaPath: 'Visual Studio Code Copilot Extensions'
64
serviceTreeID: '1788a767-5861-45fb-973b-c686b67c5541'
65
enabled: true
66
67
${{ if eq(parameters.customNPMRegistry, false) }}:
68
customNPMRegistry: ''
69
70
generateNotice: true
71
72
publishExtension: ${{ parameters.publishExtension }}
73
ghCreateTag: ${{ parameters.publishExtension }}
74
ghTagPrefix: 'copilot/'
75
ghCreateRelease: false
76
77