Skip to content
Merged

Develop #2211

Show file tree
Hide file tree
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
17 changes: 1 addition & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,4 @@ jobs:
cache: yarn
- run: yarn install
- run: scripts/release --build
# ─────────────────────────────────────────────────────────────────────
# TEMPORARY: --major forces every publishable package to a new major
# version on the next publish. This is in place ONLY for the platform
# upgrade release (React 18, MUI v7, Node 24, test stack modernization).
#
# REVERT THIS IMMEDIATELY AFTER THE PLATFORM RELEASE PUBLISHES.
#
# How to revert: open a follow-up PR to master that removes the
# --major flag from the line below, restoring:
# - run: scripts/release --release --loglevel verbose
#
# Leaving --major in place will bump every package to the next major
# on EVERY subsequent merge to master, which is almost certainly not
# what you want.
# ─────────────────────────────────────────────────────────────────────
- run: scripts/release --release --major --loglevel verbose
- run: scripts/release --release --loglevel verbose
13 changes: 3 additions & 10 deletions scripts/release
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const CWD = process.cwd();
* - `next`: Defaults to `false`.
*/
const argv = minimist(process.argv.slice(2), {
boolean: ['dry-run', 'next', 'build', 'test', 'release', 'major'],
boolean: ['dry-run', 'next', 'build', 'test', 'release'],
string: ['loglevel'],
default: { 'dry-run': false, next: false, build: false, test: false, release: false, major: false },
default: { 'dry-run': false, next: false, build: false, test: false, release: false },
});

/**
Expand Down Expand Up @@ -160,14 +160,7 @@ const test = () => {
*/
const release = () => {
log(chalk.magenta('--- STEP 5: VERSION PACKAGES ---'));
// --major forces a major bump on every publishable package, bypassing
// conventional-commits inference. Use this for coordinated platform
// upgrades (peerDep changes for React, MUI, etc.) where every package
// must move to a new major in lockstep.
const versionCmd = argv.major
? 'npx lerna version major --force-publish=* --yes'
: 'npx lerna version --conventional-commits --yes';
runCmd(versionCmd);
runCmd('npx lerna version --conventional-commits --yes');

log(chalk.magenta('--- STEP 6: PUBLISH PACKAGES ---'));
let releaseCmd = 'npx lerna publish from-git --yes';
Expand Down
Loading