Skip to content

Commit

Permalink
fix: modify cr suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
visiky committed Dec 11, 2022
1 parent 1d29ebf commit 3a29adf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Deploy

on:
workflow_dispatch:
push:
branches:
- master

jobs:
deploy-site:
Expand All @@ -13,7 +10,7 @@ jobs:
- uses: actions/checkout@v2
- run: yarn install
- run: cd site && yarn install
- run: npm run site:build
- run: cd site && npm run build
- run: cp ./site/CNAME ./site/dist/CNAME
- run: |
cd site/dist
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
"build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
"build": "run-p build:*",
"site:build": "cd site && npm run build",
"bundle-vis": "cross-env BUNDLE_VIS=1 run-p build:umd",
"ci": "run-s lint test build",
"prepublishOnly": "npm run ci",
Expand Down Expand Up @@ -139,4 +138,4 @@
"d3-shape": "^3.1.0",
"d3-voronoi": "^1.1.4"
}
}
}
5 changes: 4 additions & 1 deletion site/.dumi/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ if (window) {
(window as any).fecha = require('fecha');
}

if (location.origin !== 'g2-site-pre.alipay.com') {
if (
location.origin === 'g2.antv.vision' ||
location.origin === 'antv-g2.gitee.io'
) {
(window as any).location.href = location.href.replace(
location.origin,
'https://g2.antv.antgroup.com',
Expand Down

0 comments on commit 3a29adf

Please sign in to comment.