Skip to content

Use ESRP release and private npm registry in publish build - #4192

Merged
Elizabeth Craig (ecraig12345) merged 7 commits into
mainfrom
user/elcraig/esrp-release
Aug 15, 2026
Merged

Use ESRP release and private npm registry in publish build#4192
Elizabeth Craig (ecraig12345) merged 7 commits into
mainfrom
user/elcraig/esrp-release

Conversation

@ecraig12345

@ecraig12345 Elizabeth Craig (ecraig12345) commented Aug 14, 2026

Copy link
Copy Markdown
Member

Description of changes

Use the ESRP release API wrapper (@microsoft/esrp-npm-release) I wrote for publishing. That link has more details about the overall approach, and this pipeline uses the same resources I already set up for the beachball repo's release.

New publishing workflow:

  • Use a private Office npm registry to avoid network isolation issues
  • Build stage:
    • yarn lage pack packs new package versions (same as before) but organizes the tgz files into the required format for the tool
      • Also pack them under Build.StagingDirectory so that can be used as the publish pipeline's outputParentDirectory to only run SDL tasks once
    • Upload packs and @microsoft/esrp-npm-release CLI as artifacts (the CLI must be an artifact so it's accessible to the release job, which can't npm install)
      • Temporary workaround: due to quarantine on the internal feed, the CLI is temporarily checked in as scripts/esrp-npm-release-temp/index.mjs
  • Publish stage:
    • Download CLI and tarball artifacts
    • Get credentials
    • Use CLI to publish with ESRP

Verification

  • Ran the ADO pipeline against my branch (with publishing step commented)
  • PR build passes

@ecraig12345
Elizabeth Craig (ecraig12345) force-pushed the user/elcraig/esrp-release branch 3 times, most recently from 62c7540 to 5d83c9b Compare August 14, 2026 22:17
@ecraig12345
Elizabeth Craig (ecraig12345) marked this pull request as ready for review August 15, 2026 00:51
@ecraig12345
Elizabeth Craig (ecraig12345) merged commit 46aabca into main Aug 15, 2026
14 checks passed
@ecraig12345
Elizabeth Craig (ecraig12345) deleted the user/elcraig/esrp-release branch August 15, 2026 03:46
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.

2 participants