diff --git a/scripts/lib/publishing.ts b/scripts/lib/publishing.ts index 6dbb3b186..9d1cc1d77 100644 --- a/scripts/lib/publishing.ts +++ b/scripts/lib/publishing.ts @@ -172,8 +172,8 @@ export async function publish(distTag?: string) { } }, { - delay: 3000, - numAttempts: 10, + delay: 4000, + numAttempts: 20, } ) } diff --git a/scripts/publish-patch.ts b/scripts/publish-patch.ts index 69f120169..96f7e5710 100644 --- a/scripts/publish-patch.ts +++ b/scripts/publish-patch.ts @@ -28,8 +28,9 @@ async function main() { } // we could probably do this a lot earlier in the yml file but 🤷‍♂️ + await exec('git', ['fetch', 'origin', 'main']) const numberOfCommitsSinceBranch = Number( - (await exec('git', ['rev-list', '--count', `HEAD`, '^main'])).toString().trim() + (await exec('git', ['rev-list', '--count', `HEAD`, '^origin/main'])).toString().trim() ) if (numberOfCommitsSinceBranch === 0) {