diff --git a/publish.yml b/publish.yml index ada147084..b3e4c4a40 100644 --- a/publish.yml +++ b/publish.yml @@ -59,3 +59,7 @@ extends: tag: latest ${{ else }}: tag: beta + + apiScanExcludes: 'package/third_party/conpty/1.20.240626001/win10-arm64/*.*' + apiScanSoftwareName: 'vscode-node-pty' + apiScanSoftwareVersion: '1' diff --git a/scripts/increment-version.js b/scripts/increment-version.js index 7b772b8c0..10a52809f 100644 --- a/scripts/increment-version.js +++ b/scripts/increment-version.js @@ -42,7 +42,10 @@ function getNextBetaVersion() { } function getPublishedVersions(version, tag) { - const versionsProcess = cp.spawnSync('npm', ['view', packageJson.name, 'versions', '--json']); + const isWin32 = process.platform === 'win32'; + const versionsProcess = isWin32 ? + cp.spawnSync('npm.cmd', ['view', packageJson.name, 'versions', '--json'], { shell: true }) : + cp.spawnSync('npm', ['view', packageJson.name, 'versions', '--json']); const versionsJson = JSON.parse(versionsProcess.stdout); if (tag) { return versionsJson.filter(v => !v.search(new RegExp(`${version}-${tag}[0-9]+`)));