Repository navigation
chore(scripts): support maintenance-branch releases with --base - #3292
Merged
Merged
Conversation
release-pr only cut from origin/master, and `next` only bumped prereleases, so a 0.10.x patch release had to be bumped by hand. `--base <branch>` cuts the release branch from origin/<branch>, opens the PR against it, and names it in the `gh release` follow-up. On a non-master base, `next` patch-bumps a stable version. package.json keeps the base branch's indentation (0.10.x uses tabs).
Contributor
Author
|
Merging as this is a release script chore only. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Additional description
Problem:
npm run release-prcould only cut a release fromorigin/master, andnextrefused stable versions. A 0.10.x patch release (needed for the W-24839159 Combobox fix, #3290) couldn't use it.Change:
scripts/release.tstakes--base <branch>(defaultmaster):chore/release-<version>fromorigin/<base>, reads the current version there, lists changes since the last tag on that branch, and opens the PR against<base>;nextpatch-bumps a stable version (0.10.65->0.10.66); on master it still requires a prerelease;package.jsonindentation (0.10.x uses tabs; master uses 2 spaces);gh release create v<version> --target <base>as the follow-up.Without
--base, behavior is unchanged. AGENTS.md documents the maintenance flow. #3291 (0.10.66) was opened with this branch's script.Tests:
scripts/__tests__/release.test.mjsgets a maintenance-branch case (patch bump, tab indent kept, PR base, changes listed from that branch only, follow-up command), an explicit-version/flag-order dry run, and a missing--basevalue. 18 tests pass. Typecheck clean.CONTRIBUTOR checklist (do not remove)
Please complete for every pull request.
Green gate — all of these must pass locally (CI runs the same):
npm run lintpasses with 0 errors (npm run lint:fixto auto-fix). Warnings are the tracked gradual-migration backlog; do not add new errors.npm run typecheckis clean (tsc --noEmit).npm test -- --runpasses — this runs both Vitest projects (jsdomunit+ real-browserbrowser) and the story HTML snapshots. If you changed rendered markup on purpose, update snapshots withnpm test -- --run -uand review the diff.npm run buildsucceeds (type-check + Vite library build +.d.ts+ entry shims).Behavior & docs:
components/button/__tests__). New props and bug fixes should get a regression test. Tests that genuinely need a real browser (focus traversal, layout/measurement, canvas) go in a*.browser.test.jsxfile (thebrowserproject); everything else is jsdom.npm run storybook→ http://localhost:6007/. Confirm the story actually renders and behaves (deprecated Storyshots/Karma are gone; there is no separate browser-tests server).content/visualPickerFigure, render props likerenderItem,iconprops,events), not assumptions — a common source of "component looks broken" reports has been stories authored against the wrong API. Cross-check againstcomponents/<name>/__examples__..d.ts(they're generated by the build); JS consumers rely on them via editor type-acquisition.REVIEWER checklist (do not remove)
CIworkflow: lint, typecheck, test, build). Chromatic visual review, if configured, has been checked.components/__tests__/__snapshots__/story-snapshots.test.jsx.snap).@salesforce/design-system-react/components/<name>and nested paths resolve for ESM, CJS, and types). Removing/renaming a public component or export is a breaking change →feat!:/BREAKING CHANGE:and a major version bump.