Skip to content

fix(pipelines): drop private packages from npm publish lists#3189

Open
liamcrumm wants to merge 1 commit into
mainfrom
liamcrumm/fix-private-npm-publish
Open

fix(pipelines): drop private packages from npm publish lists#3189
liamcrumm wants to merge 1 commit into
mainfrom
liamcrumm/fix-private-npm-publish

Conversation

@liamcrumm

@liamcrumm liamcrumm commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove agentmesh-api and agent-os-copilot-extension from the npm publish lists. They are runnable apps marked "private": true, not publishable libraries, and fail in the ESRP release pipeline.

Problem

In ADO build 2604396, two npm jobs failed with ##[error]<pkg> is marked private -> Bash exited with code '1'. The pipeline's Pack & validate step rejects any package whose package.json has "private": true.

Both packages are deployable apps, not consumable libraries:

  • @microsoft/agentmesh-api is an Express HTTP service under services/api (start: node dist/index.js).
  • @microsoft/agent-os-copilot-extension is a hosted GitHub Copilot webhook app under extensions/copilot (Express + octokit).

They are the only two of the npm publish entries marked private: true; every other entry (CLIs, SDK, mcp-proxy, mcp-server, integrations) is private: false. The private: true flag is the correct intent. The bug was that they were added to the publish lists anyway. The same npm publish on release in the Actions workflow would also reject them.

Changes

File What changed
.github/pipelines/esrp-publish.yml Removed both packages from the npmPackages parameter (used by both the build/pack and ESRP publish loops)
.github/workflows/publish.yml Removed both from the npm publish matrix and the NPM_INPUTS selector allow-list

.github/workflows/ci.yml is intentionally unchanged. Its build-npm job only builds and tests (no pack/validate or publish), so it should keep building these two apps.

Testing

  • Both YAML files parse with yaml.safe_load.
  • The embedded npm JSON arrays in publish.yml parse with json.loads; matrix is 9 entries, neither private package present; NPM_INPUTS is 20 entries, neither present.
  • No remaining references to the two packages in either publish file.

agentmesh-api and agent-os-copilot-extension are runnable apps marked
"private": true in their package.json, not publishable libraries. They
were listed in the npm publish flows, so the ESRP "Pack & validate" step
failed with "X is marked private", and npm publish would reject them on
release. Remove both from the ESRP npmPackages list and from the GitHub
Actions npm matrix and selector allow-list. CI build/test of these
packages is unchanged.

Signed-off-by: Liam Crumm <liamcrumm@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

PR Review Summary

Check Status Details
🔍 Code Review ⚠️ Missing No current-run comment
🛡️ Security Scan ⚠️ Missing No current-run comment
🔄 Breaking Changes ⚠️ Missing No current-run comment
📝 Docs Sync ⚠️ Missing No current-run comment
🧪 Test Coverage ⚠️ Missing No current-run comment

Verdict: ⚠️ AI review incomplete; ready for human review

AI review comments are untrusted advisory output. The summary reports workflow-generated completion status only, not model-authored pass/fail claims.

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added scripts/ci/cd size/S Small PR (< 50 lines) labels Jun 25, 2026
@liamcrumm liamcrumm marked this pull request as ready for review June 25, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts/ci/cd size/S Small PR (< 50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant