Release
Input
- Target version, for example
1.0.0
If the version is missing, ask for it before making changes.
Steps
- Check the worktree with
git status --short. If there are uncommitted edits, stop and ask the user how to proceed. - Update only the
versionfield in these files to the target version:packages/core/package.jsonpackages/plugin-dts/package.jsonpackages/create-rslib/package.json
- Create and switch to branch
release/v<version>. If the branch already exists, stop and ask the user how to proceed. - Review the diff and confirm the change is limited to the three version bumps.
- Create a commit with this exact message:
release: v<version> - Push the branch, then create a GitHub PR with
gh pr create. Use the same text for the PR title as the commit message:release: v<version> - Read the repository's PR template when available and follow its current headings and guidance. Explain that the PR prepares the release of
@rslib/core,rsbuild-plugin-dts, andcreate-rslibat<version>by updating their package versions. Include the release link:https://github.com/web-infra-dev/rslib/releases/tag/v<version>.
Notes
- Do not modify unrelated dependency ranges such as
workspace:*entries or therslibnpm alias in devDependencies.