Skip to content

Commit

Permalink
skip wait for published, as it takes too long (#4789)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart authored and fpbrault committed Dec 17, 2024
1 parent c79eb88 commit 70a5d83
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions utils/release/npm-publish-package.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env node
import {describeNpmTag, npmPublish} from '@coveo/semantic-monorepo-tools';
import retry from 'async-retry';
import {readFileSync} from 'node:fs';

if (!process.env.INIT_CWD) {
Expand Down Expand Up @@ -43,14 +42,6 @@ if (!(await isPublished(name, version))) {
tag: tagToPublish,
provenance: shouldProvideProvenance,
});
await retry(
async () => {
if (!(await isPublished(name, version, tagToPublish))) {
throw new Error('Version not available');
}
},
{retries: 30}
);
} else {
console.log(`Version ${version} is already published.`);
}

0 comments on commit 70a5d83

Please sign in to comment.