Skip to content

[0.85] Fix CLI-init package publishing conflicts - #16561

Merged
Vladimir Morozov (vmoroz) merged 1 commit into
microsoft:0.85-stablefrom
vmoroz:PR/fix-verdaccio-publish-conflicts-0.85
Nov 2, 2026
Merged

Vladimir Morozov (vmoroz) merged 1 commit into
microsoft:0.85-stablefrom
vmoroz:PR/fix-verdaccio-publish-conflicts-0.85

Conversation

@vmoroz

@vmoroz Vladimir Morozov (vmoroz) commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update
  • Automation (AI changes or Github Actions to reduce effort of manual tasks)

Why

Backport of #16559 to 0.85-stable. Package lookup uses PackageFeedProxy, while
CI's Verdaccio uplink uses the authenticated Azure Artifacts feed. Versions missing
from the proxy can already exist in that feed, causing duplicate-publish errors.

What

Registry consistency

  • Check existing package versions through the same local registry used for
    publishing, so the lookup sees packages already present in the uplink.

Regression coverage

  • Carry the scoped/unscoped package checks into the branch's existing Node 24
    test command, preserving its release-detection tests.

Screenshots

Not applicable; CI-only change.

Testing

yarn test passed on Node 24.22.2; yarn lint:fix and yarn format passed.
yarn change --type prerelease --branch upstream/0.85-stable passed; no change
files were needed.

Changelog

Should this change be included in the release notes: no

Fix duplicate package publishing in CLI-init validation.

Microsoft Reviewers: Open in CodeFlow

Backport of microsoft#16559.

(cherry picked from commit 79774fa)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 22:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the backport aligning version checks with the publishing registry.

No open issues 🎉

What changed in this PR

Backports #16559 to 0.85-stable, aligning CLI-init package lookups with the publishing registry to avoid duplicate-publish conflicts caused by differences between PackageFeedProxy and the authenticated CI feed.

Changes:

  • Check existing versions through the local Verdaccio registry used for publishing.
  • Add Windows regression tests for scoped and unscoped packages while preserving release-detection tests.
  • Document the registry alignment and its purpose.
File Description
package.json Adds the pruning tests to the existing Node test command.
.ado/​tests/​verdaccio-pruning.test.cjs Verifies published versions are pruned through the publish registry and unpublished versions remain.
.ado/​templates/​verdaccio-start.yml Directs pre-publish version checks to local Verdaccio.
.ado/​README.md Explains how registry consistency prevents duplicate publishing.

Review effort: Balanced

@vmoroz
Vladimir Morozov (vmoroz) merged commit 7f431ad into microsoft:0.85-stable Nov 2, 2026
32 checks passed
@vmoroz
Vladimir Morozov (vmoroz) deleted the PR/fix-verdaccio-publish-conflicts-0.85 branch November 2, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants