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

Do not run the npm publish action if package version was published #33

Closed
wants to merge 2 commits into from

Conversation

taras
Copy link
Member

@taras taras commented Dec 20, 2024

Motivation

The NPM publish step is failing because @effection-contrib/jsonl-store was previously published to NPM.

Approach

Check if the version was published to NPM in Deno and skip the publish step in GA. It's impossible to use matrix context in job.if, hence I still have to run the job but skip the publish step.

@taras taras requested a review from cowboyd December 20, 2024 00:27
@cowboyd
Copy link
Member

cowboyd commented Dec 20, 2024

If the tag isn't created, but the version exists on NPM, then it should be fail and require manual intervention. I'm not sure that we want to recover here. Instead, we should manually mitigate and create the tag by hand which will then prevent the workflow from running.

@taras taras closed this Dec 21, 2024
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.

2 participants