Skip to content

Commit

Permalink
chore: config changeset, update version (#5930)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Aarebecca authored Jun 25, 2024
1 parent 5324255 commit 0248c9c
Show file tree
Hide file tree
Showing 13 changed files with 60 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "v5",
"updateInternalDependencies": "patch",
"ignore": ["@antv/g6-site", "g6-extension-test"]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@
},
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
2 changes: 1 addition & 1 deletion packages/cli/template-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
]
},
"dependencies": {
"@antv/g6": "5.0.0-beta.35"
"@antv/g6": "^5.0.0"
},
"devDependencies": {
"@antv/g": "^6.0.5",
Expand Down
9 changes: 9 additions & 0 deletions packages/g6-extension-3d/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# @antv/g6-extension-3d

## 0.1.2

### Patch Changes

- publish in 20240625
- Updated dependencies
- @antv/g6@5.0.4
4 changes: 2 additions & 2 deletions 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.1",
"version": "0.1.2",
"description": "3D extension for G6",
"keywords": [
"antv",
Expand Down Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions packages/g6-extension-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# @antv/g6-extension-react

## 0.1.2

### Patch Changes

- publish in 20240625
- Updated dependencies
- @antv/g6@5.0.4
4 changes: 2 additions & 2 deletions 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.1",
"version": "0.1.2",
"description": "Using React Component to Define Your G6 Graph Node",
"keywords": [
"antv",
Expand Down Expand Up @@ -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"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/g6/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @antv/g6

## 5.0.4

### Patch Changes

- publish in 20240625
9 changes: 5 additions & 4 deletions packages/g6/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6",
"version": "5.0.3",
"version": "5.0.4",
"description": "A Graph Visualization Framework in JavaScript",
"keywords": [
"antv",
Expand Down Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions packages/g6/scripts/version.mjs
Original file line number Diff line number Diff line change
@@ -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');
2 changes: 1 addition & 1 deletion packages/g6/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions packages/g6/src/version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const version = '5.0.4';

0 comments on commit 0248c9c

Please sign in to comment.