diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 00000000000..97d43685d60 --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.0.1/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": false, + "fixed": [], + "linked": [], + "access": "restricted", + "baseBranch": "v5", + "updateInternalDependencies": "patch", + "ignore": ["@antv/g6-site", "g6-extension-test"] +} diff --git a/package.json b/package.json index 72bf4d13ff4..b534e498547 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "prepare": "husky install", "build": "turbo build --filter=!@antv/g6-site", "ci": "turbo run ci --filter=!@antv/g6-site", - "contribute": "node ./scripts/contribute.mjs" + "contribute": "node ./scripts/contribute.mjs", + "publish": "pnpm publish -r --publish-branch v5" }, "commitlint": { "extends": [ @@ -25,6 +26,7 @@ "devDependencies": { "@babel/core": "^7.24.5", "@babel/plugin-transform-typescript": "^7.24.5", + "@changesets/cli": "^2.27.6", "@commitlint/cli": "^18.6.1", "@commitlint/config-conventional": "^18.6.3", "@rollup/plugin-commonjs": "^25.0.7", diff --git a/packages/cli/package.json b/packages/cli/package.json index b64941a7130..8e59c7ebf58 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -38,5 +38,9 @@ }, "engines": { "node": "^18.0.0 || >=20.0.0" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/" } } diff --git a/packages/cli/template-extension/package.json b/packages/cli/template-extension/package.json index 5b8f80142f2..c73ff7a7444 100644 --- a/packages/cli/template-extension/package.json +++ b/packages/cli/template-extension/package.json @@ -32,7 +32,7 @@ ] }, "dependencies": { - "@antv/g6": "5.0.0-beta.35" + "@antv/g6": "^5.0.0" }, "devDependencies": { "@antv/g": "^6.0.5", diff --git a/packages/g6-extension-3d/CHANGELOG.md b/packages/g6-extension-3d/CHANGELOG.md new file mode 100644 index 00000000000..4fa12d6d6c0 --- /dev/null +++ b/packages/g6-extension-3d/CHANGELOG.md @@ -0,0 +1,9 @@ +# @antv/g6-extension-3d + +## 0.1.2 + +### Patch Changes + +- publish in 20240625 +- Updated dependencies + - @antv/g6@5.0.4 diff --git a/packages/g6-extension-3d/package.json b/packages/g6-extension-3d/package.json index efe4de623c6..d4473bf4e30 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.1", + "version": "0.1.2", "description": "3D extension for G6", "keywords": [ "antv", @@ -49,7 +49,7 @@ "peerDependencies": { "@antv/g": "^6.0.5", "@antv/g-canvas": "^2.0.4", - "@antv/g6": "^5.0.0-beta.30" + "@antv/g6": "^5.0.4" }, "publishConfig": { "access": "public", diff --git a/packages/g6-extension-react/CHANGELOG.md b/packages/g6-extension-react/CHANGELOG.md new file mode 100644 index 00000000000..2755cb92db6 --- /dev/null +++ b/packages/g6-extension-react/CHANGELOG.md @@ -0,0 +1,9 @@ +# @antv/g6-extension-react + +## 0.1.2 + +### Patch Changes + +- publish in 20240625 +- Updated dependencies + - @antv/g6@5.0.4 diff --git a/packages/g6-extension-react/package.json b/packages/g6-extension-react/package.json index 92380151333..20c960ae61f 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.1", + "version": "0.1.2", "description": "Using React Component to Define Your G6 Graph Node", "keywords": [ "antv", @@ -50,7 +50,7 @@ "styled-components": "^6.1.11" }, "peerDependencies": { - "@antv/g6": "^5.0.0-beta.30", + "@antv/g6": "^5.0.4", "react": ">=16.8", "react-dom": ">=16.8" }, diff --git a/packages/g6/CHANGELOG.md b/packages/g6/CHANGELOG.md new file mode 100644 index 00000000000..b9804508c00 --- /dev/null +++ b/packages/g6/CHANGELOG.md @@ -0,0 +1,7 @@ +# @antv/g6 + +## 5.0.4 + +### Patch Changes + +- publish in 20240625 diff --git a/packages/g6/package.json b/packages/g6/package.json index 20f0e5ef3c8..d9959c6fd79 100644 --- a/packages/g6/package.json +++ b/packages/g6/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g6", - "version": "5.0.3", + "version": "5.0.4", "description": "A Graph Visualization Framework in JavaScript", "keywords": [ "antv", @@ -39,21 +39,22 @@ "build:umd": "rimraf ./dist && rollup -c && npm run size", "bundle-vis": "cross-env BUNDLE_VIS=1 npm run build:umd", "ci": "run-s lint type-check build test", - "readme": "cp ../../README.* ./", "coverage": "jest --coverage", "coverage:open": "open coverage/lcov-report/index.html", "dev": "vite", "fix": "eslint ./src ./__tests__ --fix && prettier ./src __tests__ --write ", "jest": "node --expose-gc --max-old-space-size=1024 --unhandled-rejections=strict ../../node_modules/jest/bin/jest --coverage --logHeapUsage --detectOpenHandles", "lint": "eslint ./src __tests__ --quiet && prettier ./src __tests__ --check", - "prepublishOnly": "run-s ci readme", + "prepublishOnly": "run-s version ci readme", + "readme": "cp ../../README.* ./", "size": "limit-size", "start": "rimraf ./lib && tsc --module commonjs --outDir lib --watch", "tag": "node ./scripts/tag.mjs", "test": "jest", "test:integration": "npm run jest __tests__/integration", "test:unit": "npm run jest __tests__/unit", - "type-check": "tsc --noEmit" + "type-check": "tsc --noEmit", + "version": "node ./scripts/version.mjs" }, "dependencies": { "@antv/component": "^2.0.1", diff --git a/packages/g6/scripts/version.mjs b/packages/g6/scripts/version.mjs new file mode 100644 index 00000000000..370663f9704 --- /dev/null +++ b/packages/g6/scripts/version.mjs @@ -0,0 +1,5 @@ +import { readFileSync, writeFileSync } from 'fs'; + +const pkg = readFileSync('./package.json', 'utf-8'); +const version = JSON.parse(pkg).version; +writeFileSync('./src/version.ts', `export const version = '${version}';\n`, 'utf-8'); diff --git a/packages/g6/src/index.ts b/packages/g6/src/index.ts index 2f879322ea7..21deb375f4d 100644 --- a/packages/g6/src/index.ts +++ b/packages/g6/src/index.ts @@ -2,7 +2,7 @@ import './preset'; export * from './exports'; -export const version = '5.0.3'; +export { version } from './version'; export const iconfont = { css: '//at.alicdn.com/t/a/font_470089_8hnbbf8n4u8.css', js: '//at.alicdn.com/t/a/font_470089_8hnbbf8n4u8.js', diff --git a/packages/g6/src/version.ts b/packages/g6/src/version.ts new file mode 100644 index 00000000000..2ab36951f06 --- /dev/null +++ b/packages/g6/src/version.ts @@ -0,0 +1 @@ +export const version = '5.0.4';