Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9b43b63
chore: standardize repository tooling
afc163 Jun 26, 2026
a82e792
chore: remove cloudflare preview and now-build
afc163 Jun 26, 2026
7276e85
docs: add Ant Design logo to README header
afc163 Jun 26, 2026
8c4c4cb
docs: standardize README release details
afc163 Jun 26, 2026
89bd725
ci: make surge preview non-blocking
afc163 Jun 26, 2026
f022027
docs: clarify Ant Design ecosystem note
afc163 Jun 26, 2026
419097c
ci: keep surge preview as fallback
afc163 Jun 26, 2026
e50f457
docs: refine README usage and ecosystem note
afc163 Jun 27, 2026
b1ec188
ci: isolate surge preview token
afc163 Jun 27, 2026
34f4c91
docs: update Ant Design logo
afc163 Jun 27, 2026
77fadf0
docs: add Chinese README
afc163 Jun 27, 2026
983ba8b
docs: refine bilingual README branding
afc163 Jun 27, 2026
100820e
chore: standardize rc tooling and docs
afc163 Jun 27, 2026
daa943d
chore: address standardization review comments
afc163 Jun 27, 2026
f99567c
ci: update GitHub Actions versions
afc163 Jun 28, 2026
4b4e8d5
ci: use resolvable CodeQL action ref
afc163 Jun 28, 2026
249c871
chore: ignore dumi build output
afc163 Jun 28, 2026
79ae262
docs: add license file
afc163 Jun 28, 2026
a5baaab
ci: use actions checkout v7
afc163 Jun 28, 2026
a732f0f
chore: standardize package metadata
afc163 Jun 28, 2026
31f633b
ci: standardize dependabot updates
afc163 Jun 28, 2026
55c801b
chore: refine preview workflow ignores
afc163 Jun 28, 2026
fa0413a
docs: polish Chinese README wording
afc163 Jun 28, 2026
e07fb5a
docs: document dumi dev server port
afc163 Jun 28, 2026
7229a01
chore: standardize husky configuration
afc163 Jun 28, 2026
b45d438
chore: standardize package type entry
afc163 Jun 28, 2026
9703d54
ci: limit reusable workflow secrets
afc163 Jun 28, 2026
35937dd
ci: restore reusable workflow compatibility
afc163 Jun 28, 2026
0cc5248
chore: limit reusable workflow secrets
afc163 Jun 29, 2026
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
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: ant-design
open_collective: ant-design
22 changes: 12 additions & 10 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ "master" ]
branches: ['master']
pull_request:
branches: [ "master" ]
branches: ['master']
schedule:
- cron: "41 11 * * 2"
- cron: '41 11 * * 2'

jobs:
analyze:
Expand All @@ -20,22 +20,24 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ javascript ]
language: [javascript]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e
with:
category: "/language:${{ matrix.language }}"
category: '/language:${{ matrix.language }}'
2 changes: 1 addition & 1 deletion .github/workflows/react-component-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
on: [push, pull_request]
jobs:
test:
uses: react-component/rc-test/.github/workflows/test.yml@main
uses: react-component/rc-test/.github/workflows/test-utoo.yml@main
Comment thread
coderabbitai[bot] marked this conversation as resolved.
secrets: inherit

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment thread
afc163 marked this conversation as resolved.
Outdated
22 changes: 22 additions & 0 deletions .github/workflows/react-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: React Doctor

on:
pull_request:
push:
branches: [master]

permissions:
contents: read
pull-requests: write
issues: write
statuses: write

jobs:
react-doctor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: 0
persist-credentials: false
- uses: millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3
35 changes: 35 additions & 0 deletions .github/workflows/surge-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Surge Preview

on:
pull_request:

permissions:
contents: read
pull-requests: write
checks: write

jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
persist-credentials: false
- name: Build preview
if: ${{ secrets.SURGE_TOKEN != '' }}
run: |
npm install
npm run build
- uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec
if: ${{ secrets.SURGE_TOKEN != '' }}
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
with:
surge_token: ${{ env.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dist: dist
failOnError: false
setCommitStatus: false
- name: Skip Surge preview
if: ${{ secrets.SURGE_TOKEN == '' }}
run: echo "SURGE_TOKEN is not configured; skip Surge preview."
292 changes: 167 additions & 125 deletions README.md

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
"build": "dumi build",
"compile": "father build",
"lint": "eslint src/ examples/ --ext .tsx,.ts,.jsx,.js",
"now-build": "npm run build",
"prepare": "husky && dumi setup",
"prepublishOnly": "npm run compile && rc-np",
"prettier": "prettier '{src,tests}/**/*.{ts,tsx}' 'tests/**/*.js' --write",
"prettier": "prettier --write --ignore-unknown .",
"start": "dumi dev",
"test": "rc-test"
"test": "rc-test",
"tsc": "tsc --noEmit"
},
"lint-staged": {
"*": "prettier --write --ignore-unknown"
Expand All @@ -61,11 +61,13 @@
"@types/react": "^18.3.11",
"@types/react-dom": "^18.0.0",
"@types/warning": "^3.0.3",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@umijs/fabric": "^4.0.1",
"cross-env": "^7.0.3",
"dumi": "^2.4.12",
"eslint": "^8.57.1",
"eslint-plugin-jest": "^28.10.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-unicorn": "^56.0.0",
"father": "^4.5.0",
"glob": "^11.0.0",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"@@/*": [".dumi/tmp/*"],
"@rc-component/tree-select": ["src/index.tsx"]
}
}
},
"include": [".dumirc.ts", ".fatherrc.ts", "src", "tests", "examples"]
}
5 changes: 4 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"framework": "umijs"
"framework": "umijs",
"installCommand": "npm install",
"buildCommand": "npm run build",
"outputDirectory": "dist"
}
Loading