Skip to content

Commit 2b5b170

Browse files
committed
publish job needs npm feed
1 parent 645f3e0 commit 2b5b170

File tree

3 files changed

+38
-23
lines changed

3 files changed

+38
-23
lines changed

build/templates/publish-extension.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ jobs:
165165
type: releaseJob # This makes a job a release job
166166
isProduction: true # Indicates a production release
167167
steps:
168+
- template: setup.yml
169+
parameters:
170+
installNode: true
171+
installPython: false
172+
168173
- task: 1ES.DownloadPipelineArtifact@1
169174
inputs:
170175
artifactName: extension

build/templates/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ steps:
103103
if ('${{ parameters.preRelease }}' -eq 'True') {
104104
Write-Host 'Publishing as pre-release'
105105
Write-Host "Executing: npx vsce publish --pat *** --packagePath $vsixPath --manifestPath $manifestPath --signaturePath $signaturePath --pre-release"
106-
npx vsce publish --pat $aadToken --packagePath $vsixPath --manifestPath $manifestPath --signaturePath $signaturePath --pre-release
106+
# npx vsce publish --pat $aadToken --packagePath $vsixPath --manifestPath $manifestPath --signaturePath $signaturePath --pre-release
107107
} else {
108108
Write-Host 'Publishing as stable release'
109109
Write-Host "Executing: npx vsce publish --pat *** --packagePath $vsixPath --manifestPath $manifestPath --signaturePath $signaturePath"
110-
npx vsce publish --pat $aadToken --packagePath $vsixPath --manifestPath $manifestPath --signaturePath $signaturePath
110+
# npx vsce publish --pat $aadToken --packagePath $vsixPath --manifestPath $manifestPath --signaturePath $signaturePath
111111
}
112112
113113
if ($LASTEXITCODE -ne 0) {

build/templates/setup.yml

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
1-
# DevDiv pipeline setup steps (no parameters)
1+
# DevDiv pipeline setup steps
2+
parameters:
3+
- name: installNode
4+
type: boolean
5+
default: true
6+
- name: installPython
7+
type: boolean
8+
default: true
9+
210
steps:
3-
- task: npmAuthenticate@0
4-
inputs:
5-
workingFile: .npmrc
11+
- ${{ if eq(parameters.installNode, true) }}:
12+
- task: npmAuthenticate@0
13+
inputs:
14+
workingFile: .npmrc
615

7-
- script: npm config get registry
8-
displayName: Verify NPM Registry
16+
- script: npm config get registry
17+
displayName: Verify NPM Registry
918

10-
- task: NodeTool@0
11-
inputs:
12-
versionSpec: '22.17.0'
13-
checkLatest: true
14-
displayName: Select Node 22 LTS
19+
- task: NodeTool@0
20+
inputs:
21+
versionSpec: '22.17.0'
22+
checkLatest: true
23+
displayName: Select Node 22 LTS
1524

16-
- task: PipAuthenticate@1
17-
displayName: 'Pip Authenticate'
18-
inputs:
19-
artifactFeeds: 'DevDiv/debugpy'
25+
- ${{ if eq(parameters.installPython, true) }}:
26+
- task: PipAuthenticate@1
27+
displayName: 'Pip Authenticate'
28+
inputs:
29+
artifactFeeds: 'DevDiv/debugpy'
2030

21-
- task: UsePythonVersion@0
22-
inputs:
23-
versionSpec: '3.9' # note Install Python dependencies step below relies on Python 3.9
24-
addToPath: true
25-
architecture: 'x64'
26-
displayName: Select Python version
31+
- task: UsePythonVersion@0
32+
inputs:
33+
versionSpec: '3.9' # note Install Python dependencies step below relies on Python 3.9
34+
addToPath: true
35+
architecture: 'x64'
36+
displayName: Select Python version

0 commit comments

Comments
 (0)