From a8715a6cd0d3e781fdc9e63020d67372a60ac97d Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Thu, 22 Oct 2026 18:08:17 -0700 Subject: [PATCH 1/2] Document beta version selection Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publish.yml b/publish.yml index 7c89a796..660beb5b 100644 --- a/publish.yml +++ b/publish.yml @@ -65,8 +65,8 @@ extends: displayName: 'Ensure spawn-helper is executable' - script: npm ci displayName: 'Install dependencies and build' - # The following script leaves the version unchanged for - # stable releases, but increments the version for beta releases. + # Version selection queries the configured Monaco feed, so a failed mirror retry reuses + # the missing beta version instead of skipping it. Stable releases remain unchanged. - script: node scripts/increment-version.js displayName: 'Increment version' From bc4119e2129220513ba990248d529d5358d8aada Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Thu, 22 Oct 2026 18:10:11 -0700 Subject: [PATCH 2/2] Keep beta version documentation with its lookup Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- publish.yml | 4 ++-- scripts/increment-version.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/publish.yml b/publish.yml index 660beb5b..7c89a796 100644 --- a/publish.yml +++ b/publish.yml @@ -65,8 +65,8 @@ extends: displayName: 'Ensure spawn-helper is executable' - script: npm ci displayName: 'Install dependencies and build' - # Version selection queries the configured Monaco feed, so a failed mirror retry reuses - # the missing beta version instead of skipping it. Stable releases remain unchanged. + # The following script leaves the version unchanged for + # stable releases, but increments the version for beta releases. - script: node scripts/increment-version.js displayName: 'Increment version' diff --git a/scripts/increment-version.js b/scripts/increment-version.js index 27ab8d8b..3610d101 100644 --- a/scripts/increment-version.js +++ b/scripts/increment-version.js @@ -42,6 +42,7 @@ function getNextBetaVersion() { } function getPublishedVersions(version, tag) { + // npm uses the registry configured by the publishing pipeline, so beta numbering follows that feed. const isWin32 = process.platform === 'win32'; const versionsProcess = isWin32 ? cp.spawnSync('npm.cmd', ['view', packageJson.name, 'versions', '--json'], { shell: true }) :