Skip to content

Commit dc822b1

Browse files
authored
Merge pull request #2209 from pie-framework/revert-2208-chore/wf
Revert "chore(release): add --major flag to scripts/release, enable on master…"
2 parents cb8e2cf + 2454e36 commit dc822b1

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
@@ -26,9 +26,9 @@ const CWD = process.cwd();
2626
* - `next`: Defaults to `false`.
2727
*/
2828
const argv = minimist(process.argv.slice(2), {
29-
boolean: ['dry-run', 'next', 'build', 'test', 'release', 'major'],
29+
boolean: ['dry-run', 'next', 'build', 'test', 'release'],
3030
string: ['loglevel'],
31-
default: { 'dry-run': false, next: false, build: false, test: false, release: false, major: false },
31+
default: { 'dry-run': false, next: false, build: false, test: false, release: false },
3232
});
3333

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

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

0 commit comments

Comments
 (0)