Skip to content

build: release script producing duplicate results #30999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2025

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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