-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(scripts): v9 release should not include v8 docsite in scope #24809
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,23 +23,26 @@ const websitePackages = [ | |||||
| '@fluentui/api-docs', | ||||||
| ]; | ||||||
|
|
||||||
| const releaseScope = process.env.RELEASE_VNEXT ? 'v9' : 'v8'; | ||||||
|
|
||||||
| // Only include the packages that are published daily by beachball, and some website/doc packages | ||||||
| // (which must be built and uploaded with each release). This is similar to "--scope \"!packages/fluentui/*\"" | ||||||
| // in the root package.json's publishing-related scripts and will need to be updated if --scope changes. | ||||||
| const beachballPackageScopes = Object.entries(getAllPackageInfo()) | ||||||
| .filter(([, { packageJson, packagePath }]) => { | ||||||
| const isNorthstar = /[\\/]fluentui[\\/]/.test(packagePath); | ||||||
|
|
||||||
| // Northstar has separate release tooling, always ignore northstar | ||||||
| if (isNorthstar) { | ||||||
| return false; | ||||||
| } | ||||||
|
|
||||||
| const isConverged = isConvergedPackage({ packagePathOrJson: packageJson }); | ||||||
| if (process.env.RELEASE_VNEXT && isConverged) { | ||||||
| if (releaseScope === 'v9' && isConverged) { | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we unify this one way or another for both if statements? (release scope check first , isConverged 2nd ) |
||||||
| return packageJson.private !== true; | ||||||
| } | ||||||
|
|
||||||
| if (!isConverged) { | ||||||
| if (!isConverged && releaseScope === 'v8') { | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| // v8 scope | ||||||
| return websitePackages.includes(packageJson.name) || packageJson.private !== true; | ||||||
| } | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add more docs to this ? there is something for beachbalPackagesScopes but Im not sure its up to date