Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: optimize the release workflow #863

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,33 @@ jobs:
- name: Update version
run: node common/scripts/install-run-rush.js version --bump

- name: Build packages
run: node common/scripts/install-run-rush.js build --only tag:package -t @internal/bugserver-trigger
- name: Build vrender-core
run: node common/scripts/install-run-rush.js build --only @visactor/vrender-core

- name: Build vrender-kits
run: node common/scripts/install-run-rush.js build --only @visactor/vrender-kits

- name: Build vrender
run: node common/scripts/install-run-rush.js build --only @visactor/vrender

- name: Build vrender-components
run: node common/scripts/install-run-rush.js build --only @visactor/vrender-components

- name: Build bugserver
run: node common/scripts/install-run-rush.js build --only @@internal/bugserver-trigger

- name: Run CI
working-directory: ./tools/bugserver-trigger
env:
BUG_SERVER_TOKEN: ${{ secrets.BUG_SERVER_TOKEN }}
run: node ../../common/scripts/install-run-rushx.js ci -t @internal/bugserver-trigger

- name: Build react-vrender
run: node common/scripts/install-run-rush.js build --only @visactor/react-vrender

- name: Build react-vrender-utils
run: node common/scripts/install-run-rush.js build --only @@internal/react-vrender-utils

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Expand Down
10 changes: 2 additions & 8 deletions packages/react-vrender-utils/bundler.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

/**
* @type {Partial<import('@visactor/bundler').Config>}
*/
module.exports = {
formats: ["cjs", "es", "umd"],
formats: ['cjs', 'es'],
name: 'ReactVRender.Utils',
umdOutputFilename: 'index',
globals: {
Expand All @@ -12,10 +11,5 @@ module.exports = {
'react-reconciler': 'ReactReconciler',
'@visactor/react-vrender': 'ReactVRender'
},
external: [
"@visactor/vrender",
"@visactor/vutils",
"react-reconciler",
"@visactor/react-vrender"
]
external: ['@visactor/vrender', '@visactor/vutils', 'react-reconciler', '@visactor/react-vrender']
};
3 changes: 1 addition & 2 deletions packages/react-vrender-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"build": "bundle",
"dev": "bundle --clean -f es -w",
"test": "",
"start": "vite ./vite",
"prepublishOnly": "npm run build"
"start": "vite ./vite"
},
"peerDependencies": {
"react": "^18.2.0",
Expand Down
9 changes: 2 additions & 7 deletions packages/react-vrender/bundler.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@

/**
* @type {Partial<import('@visactor/bundler').Config>}
*/
module.exports = {
formats: ["cjs", "es", "umd"],
formats: ['cjs', 'es'],
name: 'ReactVRender',
umdOutputFilename: 'index',
globals: {
'@visactor/vrender': 'VRender',
'@visactor/vutils': 'VUtils',
'react-reconciler': 'ReactReconciler'
},
external: [
"@visactor/vrender",
"@visactor/vutils",
"react-reconciler"
]
external: ['@visactor/vrender', '@visactor/vutils', 'react-reconciler']
};
3 changes: 1 addition & 2 deletions packages/react-vrender/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"build": "bundle",
"dev": "bundle --clean -f es -w",
"test": "",
"start": "vite ./vite",
"prepublishOnly": "npm run build"
"start": "vite ./vite"
},
"peerDependencies": {
"react": "^18.2.0"
Expand Down
9 changes: 2 additions & 7 deletions packages/vrender-components/bundler.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@

/**
* @type {Partial<import('@visactor/bundler').Config>}
*/
module.exports = {
formats: ["cjs", "es", "umd"],
formats: ['cjs', 'es'],
name: 'VRender.Components',
umdOutputFilename: 'index',
globals: {
'@visactor/vrender': 'VRender',
'@visactor/vutils': 'VUtils',
'@visactor/vscale': 'VScale'
},
external: [
"@visactor/vrender",
"@visactor/vutils",
"@visactor/vscale"
]
external: ['@visactor/vrender', '@visactor/vutils', '@visactor/vscale']
};
1 change: 0 additions & 1 deletion packages/vrender-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"test-cov": "jest --coverage",
"test-live": "npm run test-watch __tests__/unit/",
"test-watch": "DEBUG_MODE=1 jest --watch",
"prepublishOnly": "npm run build",
"analysis-core": "bundle -f umd -a -i core.ts"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vrender-core/bundler.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @type {Partial<import('@visactor/bundler').Config>}
*/
module.exports = {
formats: ['cjs', 'es', 'umd'],
formats: ['cjs', 'es'],
name: 'VRenderCore',
umdOutputFilename: 'index',
external: ['@visactor/vutils'],
Expand Down
3 changes: 1 addition & 2 deletions packages/vrender-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"test": "jest",
"test-live": "npm run test-watch __tests__/unit/theme/line.test.ts",
"test-watch": "DEBUG_MODE=1 jest --watch",
"test-cov": "jest -w 16 --coverage",
"prepublishOnly": "npm run build"
"test-cov": "jest -w 16 --coverage"
},
"dependencies": {
"color-convert": "2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/vrender-kits/bundler.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @type {Partial<import('@visactor/bundler').Config>}
*/
module.exports = {
formats: ['cjs', 'es', 'umd'],
formats: ['cjs', 'es'],
name: 'VRender.Kits',
umdOutputFilename: 'index',
globals: {
Expand Down
3 changes: 1 addition & 2 deletions packages/vrender-kits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"build": "bundle",
"dev": "bundle --clean -f es -w",
"start": "vite ./vite",
"test": "",
"prepublishOnly": "npm run build"
"test": ""
},
"dependencies": {
"@visactor/vrender-core": "workspace:0.17.10",
Expand Down
3 changes: 1 addition & 2 deletions packages/vrender/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"test": "jest",
"test-cov": "jest -w 16 --coverage",
"test-live": "npm run test-watch __tests__/unit/theme/line.test.ts",
"test-watch": "DEBUG_MODE=1 jest --watch",
"prepublishOnly": "npm run build"
"test-watch": "DEBUG_MODE=1 jest --watch"
},
"dependencies": {
"@visactor/vrender-core": "workspace:0.17.10",
Expand Down
Loading