File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ extends:
112112 $drop = "$(Build.StagingDirectory)\drop"
113113 New-Item -ItemType Directory -Path $drop -Force | Out-Null
114114 Write-Host "Packaging VSIX directly into drop: $drop\autopep8.vsix"
115- npx @vscode/ vsce@latest package -o "$drop\autopep8.vsix"
115+ npx vsce package -o "$drop\autopep8.vsix"
116116 if ($LASTEXITCODE -ne 0 -or -not (Test-Path "$drop\autopep8.vsix")) {
117117 Write-Error "VSIX packaging failed or file missing."; exit 1
118118 }
@@ -123,7 +123,7 @@ extends:
123123 Get-Item "$drop\autopep8.vsix" | Format-Table Name,Length,LastWriteTime -AutoSize
124124 displayName: Package VSIX into drop
125125
126- - script : npx @vscode/ vsce@latest generate-manifest -i "$(Build.StagingDirectory)\drop\autopep8.vsix" -o "$(Build.StagingDirectory)\drop\extension.manifest"
126+ - script : npx vsce generate-manifest -i "$(Build.StagingDirectory)\drop\autopep8.vsix" -o "$(Build.StagingDirectory)\drop\extension.manifest"
127127 displayName : Generate extension manifest
128128
129129 - template : build/templates/sign.yml@self
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ extends:
111111 $drop = "$(Build.StagingDirectory)\drop"
112112 New-Item -ItemType Directory -Path $drop -Force | Out-Null
113113 Write-Host "Packaging VSIX directly into drop: $drop\autopep8.vsix"
114- npx @vscode/ vsce@latest package -o "$drop\autopep8.vsix"
114+ npx vsce package -o "$drop\autopep8.vsix"
115115 if ($LASTEXITCODE -ne 0 -or -not (Test-Path "$drop\autopep8.vsix")) {
116116 Write-Error "VSIX packaging failed or file missing."; exit 1
117117 }
@@ -122,7 +122,7 @@ extends:
122122 Get-Item "$drop\autopep8.vsix" | Format-Table Name,Length,LastWriteTime -AutoSize
123123 displayName: Package VSIX into drop
124124
125- - script : npx @vscode/ vsce@latest generate-manifest -i "$(Build.StagingDirectory)\drop\autopep8.vsix" -o "$(Build.StagingDirectory)\drop\extension.manifest"
125+ - script : npx vsce generate-manifest -i "$(Build.StagingDirectory)\drop\autopep8.vsix" -o "$(Build.StagingDirectory)\drop\extension.manifest"
126126 displayName : Generate extension manifest
127127
128128 - template : build/templates/sign.yml@self
Original file line number Diff line number Diff line change 55# vsixName: autopep8.vsix
66# workingDirectory: $(Build.SourcesDirectory)
77# signType: real
8- # Note: vsce CLI expected to be installed by parent pipeline; no local install here .
8+ # Note: vsce CLI is invoked via 'npx vsce' (devDependency), no global install required .
99
1010parameters :
1111 - name : vsixName
@@ -29,7 +29,7 @@ parameters:
2929 - name : prepareRoot
3030 type : boolean
3131 default : true
32- # vsceVersion parameter removed (always use @vscode/vsce@latest explicitly)
32+ # vsceVersion parameter removed; rely on pinned devDependency version via npx.
3333
3434steps :
3535 # vsce CLI expected to be installed by parent pipeline; no local install here.
@@ -125,7 +125,7 @@ steps:
125125 if (!(Test-Path $vsix)) { Write-Error "Missing VSIX: $vsix"; exit 1 }
126126 if (!(Test-Path $manifest)) { Write-Error "Missing manifest: $manifest"; exit 1 }
127127 if (!(Test-Path $signature)) { Write-Error "Missing signature file: $signature"; exit 1 }
128- vsce verify-signature --packagePath "$vsix" --manifestPath "$manifest" --signaturePath "$signature"
128+ npx vsce verify-signature --packagePath "$vsix" --manifestPath "$manifest" --signaturePath "$signature"
129129 if ($LASTEXITCODE -ne 0) {
130130 Write-Error "vsce verify-signature failed with exit code $LASTEXITCODE"
131131 exit $LASTEXITCODE
You can’t perform that action at this time.
0 commit comments