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

Tolerate already published error for retrying #40812

Merged
merged 1 commit into from Sep 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 11 additions & 1 deletion scripts/publish-native.js
Expand Up @@ -46,7 +46,17 @@ const cwd = process.cwd()
} catch (err) {
// don't block publishing other versions on single platform error
console.error(`Failed to publish`, platform)
throw err

if (
err.message &&
err.message.includes(
'You cannot publish over the previously published versions'
)
) {
console.error('Ignoring already published error', platform)
} else {
throw err
}
}
// lerna publish in next step will fail if git status is not clean
execSync(
Expand Down