Skip to content
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

publish semver checking bugfixes #8038

Merged
merged 4 commits into from
Jan 17, 2025
Merged

publish semver checking bugfixes #8038

merged 4 commits into from
Jan 17, 2025

Conversation

wraithgar
Copy link
Member

@wraithgar wraithgar commented Jan 16, 2025

This fixes two bugs with how publish checks the highest semver version of existing packages.

First, it allows for the presence of publishConfig.tag to be considered "not default", allowing publish in that situation.

Second, it disregards deprecated versions from consideration when finding if there are any higher versions extant.

Other commits in this PR updates @npmcli/eslint-config and removes some max-len bypasses that are no longer needed thanks to that update.

Finally, a scope was added to the test package name in the publish tests.

References

Closes: #8017

@wraithgar wraithgar requested a review from a team as a code owner January 16, 2025 20:47
lib/commands/publish.js Show resolved Hide resolved
test/lib/commands/publish.js Show resolved Hide resolved
test/lib/commands/publish.js Outdated Show resolved Hide resolved
@wraithgar wraithgar merged commit dc31c1b into latest Jan 17, 2025
19 checks passed
@wraithgar wraithgar deleted the gar/publish-semver branch January 17, 2025 15:31
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.

[BUG] npm 11 publish pre-release does not take publishConfig.tag into account
2 participants