-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathazure-pipelines.stable.yml
68 lines (59 loc) · 2.55 KB
/
azure-pipelines.stable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
trigger:
branches:
include:
- main
pr: none
resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco
parameters:
- name: publishExtension
displayName: 🚀 Publish Extension
type: boolean
default: false
extends:
template: azure-pipelines/extension/stable.yml@templates
parameters:
publishExtension: ${{ parameters.publishExtension }}
buildSteps:
# Instructions can be found here under `npm` (https://dev.azure.com/msresearch/MSR%20Engineering/_packaging?_a=connect&feed=MSR-Python-Analysis)
# Generate token with read/write for Packaging from the msresearch org.
- task: Bash@3
displayName: Update .npmrc file
inputs:
targetType: 'inline'
script: |
echo '@msrvida:registry=https://pkgs.dev.azure.com/msresearch/_packaging/MSR-Python-Analysis/npm/registry/.' > .npmrc
echo 'always-auth=true' >> .npmrc
echo '' >> .npmrc
echo '; begin auth token' >> .npmrc
echo '//pkgs.dev.azure.com/msresearch/_packaging/MSR-Python-Analysis/npm/registry/:username=msresearch' >> .npmrc
echo '//pkgs.dev.azure.com/msresearch/_packaging/MSR-Python-Analysis/npm/registry/:_password=$(NPM_TOKEN_BASE64_FOR_GATHER)' >> .npmrc
echo '//pkgs.dev.azure.com/msresearch/_packaging/MSR-Python-Analysis/npm/registry/:email=npm requires email to be set but doesnt use the value' >> .npmrc
echo '//pkgs.dev.azure.com/msresearch/_packaging/MSR-Python-Analysis/npm/:username=msresearch' >> .npmrc
echo '//pkgs.dev.azure.com/msresearch/_packaging/MSR-Python-Analysis/npm/:_password=$(NPM_TOKEN_BASE64_FOR_GATHER)' >> .npmrc
echo '//pkgs.dev.azure.com/msresearch/_packaging/MSR-Python-Analysis/npm/:email=npm requires email to be set but doesnt use the value' >> .npmrc
echo '; end auth token' >> .npmrc
echo '' >> .npmrc
echo '$(NPM_TOKEN_BASE64_FOR_GATHER) was written to .npmrc'
- task: Bash@3
displayName: Print .npmrc file
inputs:
targetType: 'inline'
script: |
cat .npmrc
- bash: npm i -g [email protected]
displayName: Install [email protected]
- script: npm ci
displayName: Install dependencies
- script: npm run build
displayName: Build
tsa:
config:
areaPath: 'Visual Studio Code Jupyter Extensions'
serviceTreeID: '14f24efd-b502-422a-9f40-09ea7ce9cf14'
enabled: true