Repository navigation
chore(release): create a new release pull request script - #3233
Merged
Merged
Conversation
interactivellama
marked this pull request as ready for review
October 6, 2026 18:39
interactivellama
force-pushed
the
chore/create-release-pr
branch
from
October 29, 2026 23:00
ffa9c92 to
6e24b07
Compare
Runs repo scripts written in TypeScript. The lockfile change adds only the tsx entry. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
`npm run release-pr` bumps the version on a branch cut from origin/master, pushes it, and opens the PR. The script is TypeScript and runs with tsx; tsconfig.scripts.json puts scripts/ under `npm run typecheck`. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
interactivellama
force-pushed
the
chore/create-release-pr
branch
from
October 29, 2026 23:25
c8446d1 to
695ba75
Compare
Niznikr
approved these changes
Oct 30, 2026
Comment on lines
+2
to
+3
| // Repo tooling in `scripts/` (run with `tsx`). The build config only covers | ||
| // `components/`, `utilities/` and `types/`; `npm run typecheck` runs this too. |
Collaborator
There was a problem hiding this comment.
Comment syntax isn't compatible in JSON
There was a problem hiding this comment.
Nevermind. TypeScript compiler allows comments
skligerman
approved these changes
Oct 30, 2026
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
Adds
npm run release-pr, a script that does the mechanical part of a release: bump the version, commit, push, and open the release PR. Before this, those steps were done by hand.Usage
What it does
originisn'tsalesforce/design-system-react(releases are pushed from the main repo, not a fork)ghisn't authenticatedv<version>already existsx.y.zorx.y.z-<alpha|beta|rc>.Norigin/master, not the working branch.nextincrements the trailing prerelease number and is rejected for stable versions.chore/release-<version>fromorigin/master, so unrelated work on the current branch doesn't end up in the release.package.json, preserving key order. It changes onlyversionandpublishConfig.tag. The tag isalpha,betaorrcfor prereleases and is removed for stable releases, so they publish aslatest. The script aborts if any other file changed.chore(release): update version to <version>, pushes, and opens a PR againstmaster. The PR body lists the commits since the previous tag.Implementation
scripts/release.tsis TypeScript, run with tsx (added as adevDependency; the lockfile change is the tsx entry only).tsconfig.scripts.jsonputsscripts/under npm run typecheck.scripts/__tests__/release.test.mjsruns the script against throwaway git repos with a stub gh and checks the version bump, branch, PR arguments and refusal cases. Nothing real is pushed or opened.AGENTS.mddescribes the command.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).onRenderContent/onRenderVisualPicker,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.