Skip to content

Commit aa2f6f5

Browse files
authored
Merge pull request #3003 from pie-framework/revert-2999-chore/wf
Revert "chore(release): add --major flag to scripts/release, enable on master…"
2 parents e9f2bba + b9c579b commit aa2f6f5

2 files changed

Lines changed: 4 additions & 26 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,4 @@ jobs:
7575
cache: yarn
7676
- run: yarn install
7777
- run: scripts/release --build
78-
# ─────────────────────────────────────────────────────────────────────
79-
# TEMPORARY: --major forces every publishable package to a new major
80-
# version on the next publish. This is in place ONLY for the platform
81-
# upgrade release (React 18, MUI v7, Node 24, test stack modernization).
82-
#
83-
# REVERT THIS IMMEDIATELY AFTER THE PLATFORM RELEASE PUBLISHES.
84-
#
85-
# How to revert: open a follow-up PR to master that removes the
86-
# --major flag from the line below, restoring:
87-
# - run: scripts/release --release --loglevel verbose
88-
#
89-
# Leaving --major in place will bump every package to the next major
90-
# on EVERY subsequent merge to master, which is almost certainly not
91-
# what you want.
92-
# ─────────────────────────────────────────────────────────────────────
93-
- run: scripts/release --release --major --loglevel verbose
78+
- run: scripts/release --release --loglevel verbose

scripts/release

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ const CWD = process.cwd();
2727
* - `next`: Defaults to `false`.
2828
*/
2929
const argv = minimist(process.argv.slice(2), {
30-
boolean: ['dry-run', 'next', 'build', 'test', 'release', 'major'],
30+
boolean: ['dry-run', 'next', 'build', 'test', 'release'],
3131
string: ['loglevel'],
32-
default: { 'dry-run': false, next: false, build: false, test: false, release: false, major: false },
32+
default: { 'dry-run': false, next: false, build: false, test: false, release: false },
3333
});
3434

3535
/**
@@ -209,14 +209,7 @@ const test = () => {
209209
*/
210210
const release = () => {
211211
log(chalk.magenta('--- STEP 5: VERSION PACKAGES ---'));
212-
// --major forces a major bump on every publishable package, bypassing
213-
// conventional-commits inference. Use this for coordinated platform
214-
// upgrades (peerDep changes for React, MUI, etc.) where every package
215-
// must move to a new major in lockstep.
216-
const versionCmd = argv.major
217-
? 'npx lerna version major --force-publish=* --yes'
218-
: 'npx lerna version --conventional-commits --yes';
219-
runCmd(versionCmd);
212+
runCmd('npx lerna version --conventional-commits --yes');
220213

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

0 commit comments

Comments
 (0)