Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented May 1, 2025

The release script decides which packages to publish by looking for targets with the release-package tag, however with the latest infra changes there are actually two targets per package: npm_package and npm_package_files. This resulted in the release script trying to publish to npm twice which in turn caused an error since versions can't be published over.

These changes resolve the issue by:

  1. Adjusting the query so it only returns the npm_package target.
  2. Adding validation that we don't resolve the same package twice.

The release script decides which packages to publish by looking for targets with the `release-package` tag, however with the latest infra changes there are actually two targets per package: `npm_package` and `npm_package_files`. This resulted in the release script trying to publish to npm twice which in turn cause an error since versions can't be published over.

These changes resolve the issue by:
1. Adjusting the query so it only returns the `npm_package` target.
2. Adding validation that we don't resolve the same package twice.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label May 1, 2025
@crisbeto crisbeto requested a review from andrewseguin May 1, 2025 08:09
@crisbeto crisbeto requested a review from a team as a code owner May 1, 2025 08:09
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label May 1, 2025
@crisbeto crisbeto removed the request for review from andrewseguin May 1, 2025 08:21
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label May 1, 2025
@crisbeto crisbeto merged commit 280a233 into angular:main May 1, 2025
29 checks passed
@crisbeto
Copy link
Member Author

crisbeto commented May 1, 2025

The changes were merged into the following branches: main, 19.2.x

crisbeto added a commit that referenced this pull request May 1, 2025
The release script decides which packages to publish by looking for targets with the `release-package` tag, however with the latest infra changes there are actually two targets per package: `npm_package` and `npm_package_files`. This resulted in the release script trying to publish to npm twice which in turn cause an error since versions can't be published over.

These changes resolve the issue by:
1. Adjusting the query so it only returns the `npm_package` target.
2. Adding validation that we don't resolve the same package twice.

(cherry picked from commit 280a233)
wildcardalice pushed a commit to wildcardalice/components that referenced this pull request May 12, 2025
The release script decides which packages to publish by looking for targets with the `release-package` tag, however with the latest infra changes there are actually two targets per package: `npm_package` and `npm_package_files`. This resulted in the release script trying to publish to npm twice which in turn cause an error since versions can't be published over.

These changes resolve the issue by:
1. Adjusting the query so it only returns the `npm_package` target.
2. Adding validation that we don't resolve the same package twice.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants