Repository navigation
chore(ci): simplify ADO npm publish pipeline - #9743
Closed
Krrish Mittal (takyyon) wants to merge 2 commits into
Closed
Krrish Mittal (takyyon) wants to merge 2 commits into
Krrish Mittal (takyyon) wants to merge 2 commits into
Conversation
Collapse .azure-pipelines/npm-publish.yml to a single Publish stage and simplify scripts/ado-npm-publisher.cjs to build from the release tag, skip packages already in the feed, and run npm publish without extra verification or post-publish readbacks. Temporarily omit the Build.SourceBranch filter on this test branch for E2E validation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…peline Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
✅ Impact of Change
✅ Test Plan
✅ Contributors
✅ Screenshots/Videos
Summary Table
PR title and body review passed. The submitted High risk level is appropriate and matches the
|
Contributor
📊 Coverage CheckNo source files changed in this PR. |
Collaborator
Author
|
Closing in favor of #9744 targeting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
cfc48e9f53d5a9950de4deb02c12c3d804ed59835.1025.0with Component Governance passing.↑ Local Biome check, 10/10 unit tests (
node --test scripts/ado-npm-publisher.test.cjs), and YAML parsing all passed after restoring themain/hotfix/v*branch gate.↓ GitHub Actions PR CI checks and code review are still pending at PR creation.
Commit Type
Risk Level
What & Why
Simplifies the Azure Pipelines npm release publisher (
.azure-pipelines/npm-publish.ymlandscripts/ado-npm-publisher.cjs) to match the straightforward flow in.github/workflows/version-release.ymland remove unnecessary verification layers that caused failures due to Azure Artifacts eventual-consistency lag on post-publish readbacks.Summary of Changes
.azure-pipelines/npm-publish.yml: Collapsed from multiple verification stages/jobs and inline Python scripts into a singlePublishstage andBuildAndPublishjob.v1/1ES.Official.PipelineTemplate.yml@1esPipelinesatrefs/tags/release),Azure-Pipelines-1ESPT-ExDSharedpool, andsdl.componentgovernance.useAgentBuildDirectory: true.Publishstage torefs/heads/mainandrefs/heads/hotfix/v*viaand(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/hotfix/v'))).npmAuthenticate@0(workloadIdentityServiceConnection: 21d5a1d8-11d3-425c-8d3a-e7f088725481,feedUrl: 'https://pkgs.dev.azure.com/msazure/One/_packaging/microsoft-logic-apps/npm/registry/').scripts/ado-npm-publisher.cjs: Consolidated into a single self-contained script withbuildandpublishcommands:refs/tags/v<releaseVersion>locally and checks it out into a clean detached worktree (retained underAgent.BuildDirectoryfor Component Governance).pnpmfrom the 1ES npm mirror using the version declared inpackage.json(packageManager) to work under 1ES Linux network isolation.pnpm install --recursive --frozen-lockfile --strict-peer-dependencies,node scripts/update-versions.js <releaseVersion>,pnpm run build:lib, and packs all 9 publishable workspace packages soworkspace:*references resolve cleanly.<name>@<releaseVersion>already exists in the feed (npm view) and skips it if present; otherwise runsnpm publish <tarball> --tag latestwith visible stdout/stderr and no post-publish readback orlatest > targetblocks..azure-pipelines/npm-verify-release.steps.ymlscripts/ado-npm-publisher-artifact.cjsscripts/ado-npm-publisher-lib.cjsscripts/ado-npm-publisher-test-feed.cjsscripts/ado-npm-publisher.test.cjs: Replaced the legacy verification test suite with focused unit tests for the simplified build/publish flow and pipeline YAML invariants.Impact of Change
npm publishoutput and idempotent skipping of already-published versions.npm view) and directnpm publishexit status without post-publish readback, matching.github/workflows/version-release.yml(which remains untouched).Test Plan
Validation Results
npx biome check scripts/ado-npm-publisher.cjs scripts/ado-npm-publisher.test.cjs— passed (0 errors)node --test scripts/ado-npm-publisher.test.cjs— passed (10/10 tests)ruby -ryaml -e "YAML.load_file('.azure-pipelines/npm-publish.yml')"— passed (YAML OK)v5.1025.0, published all 9 packages for5.1025.0to the Azure Artifacts npm feed, and passed Component Governance.Contributors
Krrish Mittal (@takyyon)
Screenshots/Videos
N/A (CI pipeline and release script only)