diff --git a/PUBLISH.md b/PUBLISH.md index 88dd7e1bd8f..404c32a8597 100644 --- a/PUBLISH.md +++ b/PUBLISH.md @@ -2,10 +2,10 @@ This project uses changeset to manage version release, and the specific release 1. Complete related development work 2. Create a branch from v5 (any name you want) -3. Run `pnpm changeset` and fill in the information as prompted -4. run `pnpm run version` to generate the version number -5. Merge the branch into the v5 branch by creating a PR on GitHub and adding a `publish` tag -6. When a branch is merged, GitHub Actions are automatically triggered and published to npm +3. Run `npm run version` command, fill in the information according to the prompt, and the version number will be updated automatically +4. Commit the changes to the remote repository +5. Create a PR on GitHub, add the `publish` label, and merge the branch to v5 +6. After the branch is merged, GitHub Actions will be triggered automatically, and the package will be published to npm --- @@ -13,7 +13,7 @@ This project uses changeset to manage version release, and the specific release 1. 完成相关的开发工作 2. 从 v5 分支创建一个分支(任意分支名均可) -3. 执行 `pnpm changeset` 命令,根据提示填写相关信息 -4. 执行 `pnpm run version` 命令,生成版本号 +3. 执行 `npm run version` 命令,根据提示填写相关信息,会自动更新版本号 +4. 将变更提交到远程仓库 5. 在 GitHub 上创建一个 PR,并添加 `publish` 标签,将该分支合并到 v5 分支 -6. 分支合并后,会自动触发 GitHub Actions,发布到 npm \ No newline at end of file +6. 分支合并后,会自动触发 GitHub Actions,发布到 npm diff --git a/package.json b/package.json index ae5048df72c..8c7a02c715a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "prepare": "husky install", "publish": "pnpm publish -r --publish-branch v5", "site": "pnpm -r --stream --filter=./packages/site run dev", - "version": "changeset version && turbo version", + "version": "./scripts/version.sh", "watch": "pnpm -r --stream --filter=!./site run start", "perf": "npm run perf" }, diff --git a/packages/g6-extension-3d/package.json b/packages/g6-extension-3d/package.json index f0eee4b84e7..d5b14db5c47 100644 --- a/packages/g6-extension-3d/package.json +++ b/packages/g6-extension-3d/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g6-extension-3d", - "version": "0.1.14", + "version": "0.1.15", "description": "3D extension for G6", "keywords": [ "antv", diff --git a/packages/g6-extension-react/package.json b/packages/g6-extension-react/package.json index 8a7d3e6f899..9fffd44d8dd 100644 --- a/packages/g6-extension-react/package.json +++ b/packages/g6-extension-react/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g6-extension-react", - "version": "0.1.15", + "version": "0.1.16", "description": "Using React Component to Define Your G6 Graph Node", "keywords": [ "antv", diff --git a/packages/g6-ssr/package.json b/packages/g6-ssr/package.json index 3307a688a90..85f36444e20 100644 --- a/packages/g6-ssr/package.json +++ b/packages/g6-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g6-ssr", - "version": "0.0.9", + "version": "0.0.10", "description": "Support SSR for G6", "keywords": [ "antv", diff --git a/packages/g6/package.json b/packages/g6/package.json index 7d594e27a63..bf3ee68c7ec 100644 --- a/packages/g6/package.json +++ b/packages/g6/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g6", - "version": "5.0.40", + "version": "5.0.41", "description": "A Graph Visualization Framework in JavaScript", "keywords": [ "antv", diff --git a/packages/g6/src/version.ts b/packages/g6/src/version.ts index 68a5eb8280e..c7c25ea0f29 100644 --- a/packages/g6/src/version.ts +++ b/packages/g6/src/version.ts @@ -1 +1 @@ -export const version = '5.0.40'; +export const version = '5.0.41'; diff --git a/scripts/version.sh b/scripts/version.sh new file mode 100755 index 00000000000..1459f7045c1 --- /dev/null +++ b/scripts/version.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +pnpm changeset +pnpm changeset version + +cd ./packages/g6 && npm run version \ No newline at end of file