File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { defineConfig } from 'dumi' ;
22
3+ const basePath = process . env . GH_PAGES ? '/tree-select/' : '/' ;
4+ const publicPath = basePath ;
5+
36export default defineConfig ( {
7+ outputPath : 'docs-dist' ,
48 favicons : [ 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' ] ,
59 themeConfig : {
610 name : 'tree-select' ,
711 logo : 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' ,
812 } ,
913 exportStatic : { } ,
10- base : '/' ,
11- publicPath : '/' ,
14+ base : basePath ,
15+ publicPath,
1216 styles : [
1317 `
1418 .markdown table {
Original file line number Diff line number Diff line change 1+ github : ant-design
2+ open_collective : ant-design
Original file line number Diff line number Diff line change 11version : 2
22updates :
3- - package-ecosystem : npm
4- directory : " /"
5- schedule :
6- interval : daily
3+ - package-ecosystem : npm
4+ directory : ' /'
5+ schedule :
6+ interval : weekly
7+ day : monday
8+ time : ' 21:00'
9+ timezone : Asia/Shanghai
10+ open-pull-requests-limit : 10
11+
12+ - package-ecosystem : github-actions
13+ directory : ' /'
14+ schedule :
15+ interval : weekly
16+ day : monday
17+ time : ' 21:00'
18+ timezone : Asia/Shanghai
19+ open-pull-requests-limit : 10
Original file line number Diff line number Diff line change 1- name : " CodeQL"
1+ name : ' CodeQL'
22
33on :
44 push :
5- branches : [ " master" ]
5+ branches : [' master' ]
66 pull_request :
7- branches : [ " master" ]
7+ branches : [' master' ]
88 schedule :
9- - cron : " 41 11 * * 2"
9+ - cron : ' 41 11 * * 2'
1010
1111jobs :
1212 analyze :
@@ -20,22 +20,24 @@ jobs:
2020 strategy :
2121 fail-fast : false
2222 matrix :
23- language : [ javascript ]
23+ language : [javascript]
2424
2525 steps :
2626 - name : Checkout
27- uses : actions/checkout@v3
27+ uses : actions/checkout@v7
28+ with :
29+ persist-credentials : false
2830
2931 - name : Initialize CodeQL
30- uses : github/codeql-action/init@v2
32+ uses : github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e
3133 with :
3234 languages : ${{ matrix.language }}
3335 queries : +security-and-quality
3436
3537 - name : Autobuild
36- uses : github/codeql-action/autobuild@v2
38+ uses : github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e
3739
3840 - name : Perform CodeQL Analysis
39- uses : github/codeql-action/analyze@v2
41+ uses : github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e
4042 with :
41- category : " /language:${{ matrix.language }}"
43+ category : ' /language:${{ matrix.language }}'
Original file line number Diff line number Diff line change 11name : ✅ test
22on : [push, pull_request]
3+ permissions :
4+ contents : read
35jobs :
46 test :
5- uses : react-component/rc-test/.github/workflows/test.yml@main
6- secrets : inherit
7+ uses : react-component/rc-test/.github/workflows/test-utoo.yml@main
8+ secrets :
9+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : React Doctor
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [master]
7+
8+ permissions :
9+ contents : read
10+ pull-requests : write
11+ issues : write
12+ statuses : write
13+
14+ jobs :
15+ react-doctor :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v7
19+ with :
20+ fetch-depth : 0
21+ persist-credentials : false
22+ - uses : millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3
Original file line number Diff line number Diff line change 1+ name : Surge Preview
2+
3+ on :
4+ pull_request :
5+
6+ permissions :
7+ contents : read
8+ pull-requests : write
9+ checks : write
10+
11+ jobs :
12+ preview :
13+ runs-on : ubuntu-latest
14+ concurrency :
15+ group : surge-preview-${{ github.event.pull_request.number }}
16+ cancel-in-progress : true
17+ steps :
18+ - uses : actions/checkout@v7
19+ with :
20+ persist-credentials : false
21+ - name : Check Surge token
22+ id : surge-token
23+ env :
24+ SURGE_TOKEN : ${{ secrets.SURGE_TOKEN }}
25+ run : |
26+ if [ -n "$SURGE_TOKEN" ]; then
27+ echo "enabled=true" >> "$GITHUB_OUTPUT"
28+ else
29+ echo "enabled=false" >> "$GITHUB_OUTPUT"
30+ fi
31+ - name : Build preview
32+ if : ${{ steps.surge-token.outputs.enabled == 'true' }}
33+ run : |
34+ npm install
35+ npm run build
36+ - uses : afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec
37+ if : ${{ steps.surge-token.outputs.enabled == 'true' }}
38+ env :
39+ SURGE_TOKEN : ${{ secrets.SURGE_TOKEN }}
40+ with :
41+ surge_token : ${{ env.SURGE_TOKEN }}
42+ github_token : ${{ secrets.GITHUB_TOKEN }}
43+ dist : docs-dist
44+ failOnError : false
45+ setCommitStatus : false
46+ - name : Skip Surge preview
47+ if : ${{ steps.surge-token.outputs.enabled != 'true' }}
48+ run : echo "SURGE_TOKEN is not configured; skip Surge preview."
Original file line number Diff line number Diff line change 3434.dumi /tmp
3535.dumi /tmp-test
3636.dumi /tmp-production
37+ docs-dist
3738.env.local
3839
39- bun.lockb
40+ bun.lockb
Original file line number Diff line number Diff line change 1- lint-staged
1+ npx lint-staged
Original file line number Diff line number Diff line change 1+ node_modules
2+ coverage
3+ docs-dist
4+ dist
5+ es
6+ lib
7+ .dumi /tmp
8+ .dumi /tmp-production
9+ .vercel
10+ package-lock.json
11+ pnpm-lock.yaml
12+ yarn.lock
13+ bun.lockb
14+ * .log
You can’t perform that action at this time.
0 commit comments