chore: config changeset, update version (#5930)

* chore: config changeset

* chore: fix cli deps version

* chore: add publish script

* chore: update version, add changelog

* chore: update changeset config

* chore: update publish script

* chore: update g6-cli

* chore: update version before publish
This commit is contained in:
Aaron 2024-06-25 15:28:14 +08:00 committed by GitHub
parent 5324255ee4
commit 0248c9c940
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 60 additions and 11 deletions

11
.changeset/config.json Normal file
View File

@ -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"]
}

View File

@ -9,7 +9,8 @@
"prepare": "husky install", "prepare": "husky install",
"build": "turbo build --filter=!@antv/g6-site", "build": "turbo build --filter=!@antv/g6-site",
"ci": "turbo run ci --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": { "commitlint": {
"extends": [ "extends": [
@ -25,6 +26,7 @@
"devDependencies": { "devDependencies": {
"@babel/core": "^7.24.5", "@babel/core": "^7.24.5",
"@babel/plugin-transform-typescript": "^7.24.5", "@babel/plugin-transform-typescript": "^7.24.5",
"@changesets/cli": "^2.27.6",
"@commitlint/cli": "^18.6.1", "@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3", "@commitlint/config-conventional": "^18.6.3",
"@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-commonjs": "^25.0.7",

View File

@ -38,5 +38,9 @@
}, },
"engines": { "engines": {
"node": "^18.0.0 || >=20.0.0" "node": "^18.0.0 || >=20.0.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
} }
} }

View File

@ -32,7 +32,7 @@
] ]
}, },
"dependencies": { "dependencies": {
"@antv/g6": "5.0.0-beta.35" "@antv/g6": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@antv/g": "^6.0.5", "@antv/g": "^6.0.5",

View File

@ -0,0 +1,9 @@
# @antv/g6-extension-3d
## 0.1.2
### Patch Changes
- publish in 20240625
- Updated dependencies
- @antv/g6@5.0.4

View File

@ -1,6 +1,6 @@
{ {
"name": "@antv/g6-extension-3d", "name": "@antv/g6-extension-3d",
"version": "0.1.1", "version": "0.1.2",
"description": "3D extension for G6", "description": "3D extension for G6",
"keywords": [ "keywords": [
"antv", "antv",
@ -49,7 +49,7 @@
"peerDependencies": { "peerDependencies": {
"@antv/g": "^6.0.5", "@antv/g": "^6.0.5",
"@antv/g-canvas": "^2.0.4", "@antv/g-canvas": "^2.0.4",
"@antv/g6": "^5.0.0-beta.30" "@antv/g6": "^5.0.4"
}, },
"publishConfig": { "publishConfig": {
"access": "public", "access": "public",

View File

@ -0,0 +1,9 @@
# @antv/g6-extension-react
## 0.1.2
### Patch Changes
- publish in 20240625
- Updated dependencies
- @antv/g6@5.0.4

View File

@ -1,6 +1,6 @@
{ {
"name": "@antv/g6-extension-react", "name": "@antv/g6-extension-react",
"version": "0.1.1", "version": "0.1.2",
"description": "Using React Component to Define Your G6 Graph Node", "description": "Using React Component to Define Your G6 Graph Node",
"keywords": [ "keywords": [
"antv", "antv",
@ -50,7 +50,7 @@
"styled-components": "^6.1.11" "styled-components": "^6.1.11"
}, },
"peerDependencies": { "peerDependencies": {
"@antv/g6": "^5.0.0-beta.30", "@antv/g6": "^5.0.4",
"react": ">=16.8", "react": ">=16.8",
"react-dom": ">=16.8" "react-dom": ">=16.8"
}, },

7
packages/g6/CHANGELOG.md Normal file
View File

@ -0,0 +1,7 @@
# @antv/g6
## 5.0.4
### Patch Changes
- publish in 20240625

View File

@ -1,6 +1,6 @@
{ {
"name": "@antv/g6", "name": "@antv/g6",
"version": "5.0.3", "version": "5.0.4",
"description": "A Graph Visualization Framework in JavaScript", "description": "A Graph Visualization Framework in JavaScript",
"keywords": [ "keywords": [
"antv", "antv",
@ -39,21 +39,22 @@
"build:umd": "rimraf ./dist && rollup -c && npm run size", "build:umd": "rimraf ./dist && rollup -c && npm run size",
"bundle-vis": "cross-env BUNDLE_VIS=1 npm run build:umd", "bundle-vis": "cross-env BUNDLE_VIS=1 npm run build:umd",
"ci": "run-s lint type-check build test", "ci": "run-s lint type-check build test",
"readme": "cp ../../README.* ./",
"coverage": "jest --coverage", "coverage": "jest --coverage",
"coverage:open": "open coverage/lcov-report/index.html", "coverage:open": "open coverage/lcov-report/index.html",
"dev": "vite", "dev": "vite",
"fix": "eslint ./src ./__tests__ --fix && prettier ./src __tests__ --write ", "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", "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", "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", "size": "limit-size",
"start": "rimraf ./lib && tsc --module commonjs --outDir lib --watch", "start": "rimraf ./lib && tsc --module commonjs --outDir lib --watch",
"tag": "node ./scripts/tag.mjs", "tag": "node ./scripts/tag.mjs",
"test": "jest", "test": "jest",
"test:integration": "npm run jest __tests__/integration", "test:integration": "npm run jest __tests__/integration",
"test:unit": "npm run jest __tests__/unit", "test:unit": "npm run jest __tests__/unit",
"type-check": "tsc --noEmit" "type-check": "tsc --noEmit",
"version": "node ./scripts/version.mjs"
}, },
"dependencies": { "dependencies": {
"@antv/component": "^2.0.1", "@antv/component": "^2.0.1",

View File

@ -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');

View File

@ -2,7 +2,7 @@ import './preset';
export * from './exports'; export * from './exports';
export const version = '5.0.3'; export { version } from './version';
export const iconfont = { export const iconfont = {
css: '//at.alicdn.com/t/a/font_470089_8hnbbf8n4u8.css', css: '//at.alicdn.com/t/a/font_470089_8hnbbf8n4u8.css',
js: '//at.alicdn.com/t/a/font_470089_8hnbbf8n4u8.js', js: '//at.alicdn.com/t/a/font_470089_8hnbbf8n4u8.js',

View File

@ -0,0 +1 @@
export const version = '5.0.4';