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

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Sep 22, 2022

This updates our publish-native script to tolerate the already published npm error so that we can retry publishing on an npm service error like noticed here. We probably want to migrate away from using lerna for publishing the non-swc packages as well so that we can retry there as well but will investigate that in a follow-up.

x-ref: https://github.com/vercel/next.js/actions/runs/3108335849/jobs/5038069555

@ijjk ijjk added the created-by: Next.js team PRs by the Next.js team label Sep 22, 2022
@ijjk ijjk merged commit 50b98d5 into vercel:canary Sep 22, 2022
@ijjk ijjk deleted the ci/tolerate-npm-fail branch September 22, 2022 23:03
ijjk added a commit that referenced this pull request Sep 22, 2022
This updates our `publish-release` script to bypass lerna so that we can
retry publishing automatically when there is an npm error and tolerate
non-fatal publish errors like already existing published versions.
Currently this will only allow publishing a canary release to ensure it
is working as expected and in a follow-up we can enable the stable
publish handling.

Separately we can investigate moving canaries away from `npm` to reduce
the number of versions being created there.

x-ref: #40812
x-ref:
https://github.com/vercel/next.js/actions/runs/3108735543/jobs/5038717354#step:10:2332
x-ref:
https://github.com/vercel/next.js/actions/runs/3108335849/jobs/5038069555
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js team PRs by the Next.js team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants