-
Notifications
You must be signed in to change notification settings - Fork 49.9k
[ci] Prepare publish workflow #32488
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
Conversation
|
Comparing: 227e841...6a8a199 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
dcd2788 to
519d2ee
Compare
| for (let i = 0; i < entries.length; i++) { | ||
| const [bestGuessVersion, packages] = entries[i]; | ||
| const packageNames = packages.map(name => theme.package(name)).join(', '); | ||
| if (ci !== 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.
Only change here was this
| if (ci === true) { | ||
| if (publishVersion != null) { | ||
| versionsMap.set(packageName, publishVersion); | ||
| } else { | ||
| const {major, minor, patch} = semver(version); | ||
|
|
||
| // Guess the next version by incrementing patch. | ||
| // The script will confirm this later. | ||
| // By default, new releases from mains should increment the minor version number, | ||
| // and patch releases should be done from branches. | ||
| if (branch === 'main') { | ||
| versionsMap.set(packageName, `${major}.${minor + 1}.0`); | ||
| console.error( | ||
| 'When running in CI mode, a publishVersion must be supplied' | ||
| ); | ||
| process.exit(1); |
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.
Only change here was this
c5ebe6b to
662ab4d
Compare
Fixes up a few things in the script and workflow to make it possible to run in CI without interactive prompts.
Fixes up a few things in the script and workflow to make it possible to run in CI without interactive prompts.