Skip to content

feat(ci): publish verified npm releases from Azure Pipelines - #9739

Merged
Krrish Mittal (takyyon) merged 2 commits into
hotfix/v1.23123from
takyyon-version-only-npm-pipeline
Nov 24, 2026
Merged

Krrish Mittal (takyyon) merged 2 commits into
hotfix/v1.23123from
takyyon-version-only-npm-pipeline

Conversation

@takyyon

@takyyon Krrish Mittal (takyyon) commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Commit Type

  • feature - New functionality
  • fix - Bug fix
  • refactor - Code restructuring without behavior change
  • perf - Performance improvement
  • docs - Documentation update
  • test - Test-related changes
  • chore - Maintenance/tooling

Risk Level

  • Low - Minor changes, limited scope
  • Medium - Moderate changes, some user impact
  • High - Major changes, significant user/system impact

What & Why

Build the exact vX.Y.Z tag selected by releaseVersion and retain the tagged source and dependency evidence for Component Governance scanning. For a manual run on hotfix/v1.23123, the separate Publish stage downloads and re-verifies all nine npm tarballs from the same run before authenticating to Azure Artifacts. This keeps feed access out of the build and verifies that the bytes published are the bytes the pipeline checked.

Impact of Change

  • Users: Package consumers can pick up the verified release from the existing Azure Artifacts feed.
  • Developers: Release operators still enter only the stable version. Tagged source and GitHub workflows are unchanged.
  • System: The checkout-free Publish stage verifies the resulting latest tags and downloads all nine tarballs from the feed to compare them with the verified artifacts.

Test Plan

  • Unit tests added/updated
  • E2E tests added/updated
  • Manual testing completed
  • Tested in: Isolated local worktree. node --test --experimental-test-isolation=none --test-concurrency=1 scripts/ado-npm-publisher.test.cjs passed 84/84 fixtures. pnpm run test:lib --concurrency=1 --no-daemon --cache=local:w --summarize -- --maxWorkers=1 --minWorkers=1 --no-file-parallelism passed all 14 Turbo tasks (11,198 tests passed, 66 skipped).

After merge, run Azure Pipelines on the protected hotfix and verify tagged-source Component Governance detection, same-run artifact verification, publication, and hosted readback from Azure Artifacts. The stable publishing run and local Playwright were not run.

Contributors

Screenshots/Videos

Not applicable; no UI changes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@takyyon Krrish Mittal (takyyon) added the risk:high High risk change requiring careful review label Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🤖 AI PR Validation Report

PR Review Results

Thank you for your submission! Here's detailed feedback on your PR title and body compliance:

✅ PR Title

  • Current: feat(ci): publish verified npm releases from Azure Pipelines
  • Issue: The title is specific and accurately describes the primary change.
  • Recommendation: No change required.

✅ Commit Type

  • Properly selected (feature).
  • Only one commit type is selected, and the PR adds new release-publishing functionality.

❌ Risk Level

  • The PR selects Low and has the risk:low label, so the body and label agree with each other.
  • However, the code change introduces a protected Azure Pipelines Publish stage, workload identity authentication, Azure Artifacts feed writes, publication reconciliation, and production release gating. This has significant system and release-process impact and should be classified as High risk.
  • Recommendation: Select High - Major changes, significant user/system impact and change the label to risk:high.

✅ What & Why

  • Current: The section explains that the pipeline builds the selected version tag, retains source and dependency evidence for Component Governance, verifies all nine artifacts, and publishes only verified bytes.
  • Issue: No material issue found.
  • Recommendation: No change required. The explanation is appropriately specific.

✅ Impact of Change

  • The Users, Developers, and System subsections are present and describe the affected release consumers, operators, pipeline behavior, feed publication, and verification flow.
  • Recommendation:
    • Users: The existing explanation that consumers receive verified releases from Azure Artifacts is appropriate.
    • Developers: The release-operator and protected-branch constraints are clearly described.
    • System: The feed authentication, artifact readback, Component Governance scanning, and sequential publication behavior are documented adequately.

✅ Test Plan

  • Unit tests are checked and corresponding test updates are present in scripts/ado-npm-publisher.test.cjs.
  • The diff adds coverage for the release verifier, writer isolation, artifact integrity, registry readback, retry behavior, publication gating, and retained scan worktrees.
  • The reported local test commands and results provide additional useful validation. The post-merge Azure Pipelines verification is also clearly identified as still required.

⚠️ Contributors

  • The section is blank. This does not block approval, but credit should be added for PMs, designers, reviewers, or other contributors who helped shape or validate the release-publishing workflow.

✅ Screenshots/Videos

  • Correctly marked as not applicable because the change does not modify the UI.

Summary Table

Section Status Recommendation
Title ✅ No change required
Commit Type ✅ Keep only feature selected
Risk Level ❌ Change the body selection and label from risk:low to risk:high
What & Why ✅ No change required
Impact of Change ✅ No change required
Test Plan ✅ Keep the added unit coverage and post-merge pipeline validation plan
Contributors ⚠️ Add contributors when applicable
Screenshots/Videos ✅ No screenshots required for this non-visual change

The PR does not pass because its declared Low risk is understated for a change that enables authenticated production npm publication. Update the Risk Level selection and label to High, then re-submit. The advised risk is higher than the risk estimated in the PR description.


Powered by: Logic App (fallback) | Last updated: Tue, 24 Nov 2026 20:44:34 GMT

@github-actions

Copy link
Copy Markdown
Contributor

📊 Coverage Check

No source files changed in this PR.

@takyyon Krrish Mittal (takyyon) added risk:low Low risk change with minimal impact and removed risk:high High risk change requiring careful review labels Nov 24, 2026
@takyyon
Krrish Mittal (takyyon) merged commit 3f03c9e into hotfix/v1.23123 Nov 24, 2026
17 of 20 checks passed
@takyyon
Krrish Mittal (takyyon) deleted the takyyon-version-only-npm-pipeline branch November 24, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-pr-update risk:low Low risk change with minimal impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants