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

Update publish script to skip lerna #40815

Merged
merged 4 commits into from Sep 22, 2022
Merged

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented 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

styfle
styfle previously approved these changes Sep 22, 2022
scripts/publish-release.js Outdated Show resolved Hide resolved
@ijjk ijjk merged commit 2cbbd61 into vercel:canary Sep 22, 2022
@ijjk ijjk deleted the ci/update-publish-script branch September 22, 2022 23:22
ijjk added a commit that referenced this pull request Sep 23, 2022
Follow-up to #40815 ensures we
skip attempting to publish private packages like `next-swc`

x-ref:
https://github.com/vercel/next.js/actions/runs/3109438515/jobs/5039954716
@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