Skip to content

chore: prevent deprecated packages from being published#614

Merged
corinagum merged 1 commit into
mainfrom
cg/deprecation
Jun 11, 2026
Merged

chore: prevent deprecated packages from being published#614
corinagum merged 1 commit into
mainfrom
cg/deprecation

Conversation

@corinagum

Copy link
Copy Markdown
Collaborator

Summary

Mark all deprecated packages as private: true so they are excluded from npm pack during publish runs. Also adds a deprecated field check in the publish pipeline as a secondary safeguard.

Packages affected

  • @microsoft/teams.ai
  • @microsoft/teams.openai
  • @microsoft/teams.dev
  • @microsoft/teams.mcp
  • @microsoft/teams.mcpclient
  • @microsoft/teams.a2a

Changes

  1. Added "private": true to each deprecated package's package.json
  2. Added "deprecated" field to @microsoft/teams.dev (was missing)
  3. Updated .azdo/publish.yml to skip packages with a deprecated field

Note

All packages except @microsoft/teams.dev are already marked deprecated on npm. teams.dev needs an org admin to run npm deprecate.

Copilot AI review requested due to automatic review settings June 11, 2026 19:59

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.

Pull request overview

This PR prevents deprecated packages in the monorepo from being included in publish artifacts by marking them private: true and adding a publish-pipeline safeguard to skip any package that has a deprecated field.

Changes:

  • Marked deprecated packages as "private": true to exclude them from the packing/publishing process.
  • Added a missing deprecated message to @microsoft/teams.dev.
  • Updated the Azure DevOps publish pipeline to skip packages with a deprecated field (in addition to private: true).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/openai/package.json Marks @microsoft/teams.openai as private to prevent publishing.
packages/dev/package.json Marks @microsoft/teams.dev as private and adds a deprecation message.
packages/ai/package.json Marks @microsoft/teams.ai as private to prevent publishing.
external/mcpclient/package.json Marks @microsoft/teams.mcpclient as private to prevent publishing.
external/mcp/package.json Marks @microsoft/teams.mcp as private to prevent publishing.
external/a2a/package.json Marks @microsoft/teams.a2a as private to prevent publishing.
.azdo/publish.yml Skips packing deprecated packages during publish runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .azdo/publish.yml
Mark all deprecated packages as private to prevent npm pack from including
them in releases:
- @microsoft/teams.ai
- @microsoft/teams.openai
- @microsoft/teams.dev
- @microsoft/teams.mcp
- @microsoft/teams.mcpclient
- @microsoft/teams.a2a

Also add a deprecated field check in the publish pipeline as a secondary
safeguard so any package with a "deprecated" field is skipped even without
the private flag.

Co-authored-by: Copilot <[email protected]>
@corinagum
corinagum added this pull request to the merge queue Jun 11, 2026
Merged via the queue into main with commit 599c937 Jun 11, 2026
6 checks passed
@corinagum
corinagum deleted the cg/deprecation branch June 11, 2026 20:27
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