Skip to content

Always set latest tag in publish code#1255

Merged
jakebailey merged 2 commits intomainfrom
fix-publish-tag
Feb 17, 2026
Merged

Always set latest tag in publish code#1255
jakebailey merged 2 commits intomainfrom
fix-publish-tag

Conversation

@jakebailey
Copy link
Member

@jakebailey jakebailey commented Feb 17, 2026

An explicit undefined here actually caused the tag to be removed from the publisher options via object spread, so we were managing to publish deprecated versions repeatedly without a tag with a tag named undefined.

image

I wasn't even aware that it was possible to publish a package without a tag (we have code that explicitly works around this fact!), so maybe that code could go away with this new knowledge.

But for now, restore the old publisher behavior where we'd publish with latest by default.

I've run the publisher from this branch and it works.

Fixes #1254

@jakebailey jakebailey added this pull request to the merge queue Feb 17, 2026
Merged via the queue into main with commit f1dee01 Feb 17, 2026
9 checks passed
@jakebailey jakebailey deleted the fix-publish-tag branch February 17, 2026 18:36
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.

Repeated npm publishes: ~70+ deprecated versions released per package over 2 days

2 participants