Skip to content

[0.81] Fix CLI-init package publishing conflicts - #16560

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

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

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.81-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.81-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 21:56

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 local Verdaccio publishing registry.

No open issues 🎉

What changed in this PR

Backports the CLI-init publishing fix to 0.81-stable, aligning package-version checks with the local Verdaccio publish registry to avoid duplicate-publish conflicts.

Changes:

  • Check existing versions through Verdaccio rather than the default package proxy.
  • Add Windows regression tests for scoped and unscoped packages while preserving release-detection tests.
  • Document why lookup and publishing must use the same registry.
File Description
package.json Adds pruning tests to the existing test command.
.ado/​tests/​verdaccio-pruning.test.cjs Verifies published versions are removed and unpublished versions retained using the publish registry.
.ado/​templates/​verdaccio-start.yml Directs pre-publish version checks to local Verdaccio.
.ado/​README.md Explains registry consistency and duplicate-publish prevention.

Review effort: Balanced

@vmoroz
Vladimir Morozov (vmoroz) merged commit fbf34ed into microsoft:0.81-stable Nov 2, 2026
36 checks passed
@vmoroz
Vladimir Morozov (vmoroz) deleted the PR/fix-verdaccio-publish-conflicts-0.81 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