Skip to content

Commit

Permalink
chore: update version (#6705)
Browse files Browse the repository at this point in the history
* chore: add version shell

* chore: update version
  • Loading branch information
Aarebecca authored Jan 8, 2025
1 parent 9adf826 commit 8c20ec8
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
14 changes: 7 additions & 7 deletions PUBLISH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ 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

---

本项目通过 changeset 来管理版本发布,具体的发布流程如下:

1. 完成相关的开发工作
2. 从 v5 分支创建一个分支(任意分支名均可)
3. 执行 `pnpm changeset` 命令,根据提示填写相关信息
4. 执行 `pnpm run version` 命令,生成版本号
3. 执行 `npm run version` 命令,根据提示填写相关信息,会自动更新版本号
4. 将变更提交到远程仓库
5. 在 GitHub 上创建一个 PR,并添加 `publish` 标签,将该分支合并到 v5 分支
6. 分支合并后,会自动触发 GitHub Actions,发布到 npm
6. 分支合并后,会自动触发 GitHub Actions,发布到 npm
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/g6-extension-3d/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6-extension-3d",
"version": "0.1.14",
"version": "0.1.15",
"description": "3D extension for G6",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/g6-extension-react/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/g6-ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6-ssr",
"version": "0.0.9",
"version": "0.0.10",
"description": "Support SSR for G6",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/g6/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6",
"version": "5.0.40",
"version": "5.0.41",
"description": "A Graph Visualization Framework in JavaScript",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/g6/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '5.0.40';
export const version = '5.0.41';
6 changes: 6 additions & 0 deletions scripts/version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

pnpm changeset
pnpm changeset version

cd ./packages/g6 && npm run version

0 comments on commit 8c20ec8

Please sign in to comment.