update-version
Cập nhật số phiên bản dự án trên tất cả các tệp chứa nó trong nhánh hiện tại. Chỉ sử dụng khi tăng phiên bản trên một nhánh duy nhất. Đối với một bản đầy đủ…
npx skills add https://github.com/openshift/lightspeed-console --skill update-versionUpdate Version
Steps
-
Determine the new version. If the user didn't specify one, read the current version from
package.jsonand bump the patch version number. -
Update
package.json— replace the version string in both the top-levelversionfield and theconsolePlugin.versionfield. Both must match. -
Update
src/components/OverviewDetail.tsx— replace the old version string in the JSX with the new one. -
Sync the lockfile — run
npm installto propagate the version change intopackage-lock.json. -
Verify — search the workspace for the old version string to confirm no stale references remain (ignore
node_modules/anddist/). Report any unexpected occurrences to the user.
Version format
This project uses semver (MAJOR.MINOR.PATCH)