Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/monorepo/runPublished.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,26 @@ const websitePackages = [
'@fluentui/api-docs',
];

const releaseScope = process.env.RELEASE_VNEXT ? 'v9' : 'v8';

Copy link
Copy Markdown
Contributor

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


// 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) {

@Hotell Hotell Sep 15, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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 )
releaseScope === 'v9' && isConverged or isConverged && releaseScope === 'v9'

return packageJson.private !== true;
}

if (!isConverged) {
if (!isConverged && releaseScope === 'v8') {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!isConverged && releaseScope === 'v8') {
if (releaseScope === 'v8' && !isConverged) {

// v8 scope
return websitePackages.includes(packageJson.name) || packageJson.private !== true;
}
Expand Down