Skip to content

Conversation

@cowboyd
Copy link
Member

@cowboyd cowboyd commented Jan 5, 2026

Motivation

We have a problem when re-running task that if we try to publish a version to npm that does not exist yet, then it fails. However, we want attempts to publish to be idemponent. This will make JSR and npm behave similarly.

Approach

This adds a check step to see if the npm package at the specified name and version already exists. If so, then we skip publishing.

We have a problem when re-running task that if we try to publish a
version to npm that does not exist yet, then it fails. However, we
want attempts to publish to be idemponent.

This adds a check step to see if the npm package at the specified name
and version already exists. If so, then we skip publishing.
@cowboyd cowboyd requested review from jbolda and taras January 5, 2026 21:18
Copy link
Member

@taras taras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about doing this at the plan level so that we don't even run the job if it's been published?

@cowboyd
Copy link
Member Author

cowboyd commented Jan 5, 2026

@taras That sounds awesome, but not sure how that would work.

@cowboyd
Copy link
Member Author

cowboyd commented Jan 6, 2026

#114 provides a much more robust solution, and all efforts should be redirected there.

@cowboyd cowboyd closed this Jan 6, 2026
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