-
-
Notifications
You must be signed in to change notification settings - Fork 197
chore: standardize repository config #523
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
eb7cb3a
chore: standardize repository config
afc163 547d2ab
chore: address AI review feedback
afc163 113b08d
docs: standardize README release details
afc163 1578373
ci: make surge preview non-blocking
afc163 fd09032
ci: keep surge preview as fallback
afc163 9f0cf7c
docs: refine README usage and ecosystem note
afc163 22675eb
ci: isolate surge preview token
afc163 8b5db46
chore: address review comments
afc163 6f9d074
docs: add Chinese README
afc163 3616952
docs: add Ant Design logo to README
afc163 de136d5
docs: refine bilingual README branding
afc163 36996c6
chore: standardize rc tooling and docs
afc163 1846df6
chore: address standardization review comments
afc163 98d897e
ci: update GitHub Actions versions
afc163 1641065
ci: use resolvable CodeQL action ref
afc163 a5df535
ci: use actions checkout v7
afc163 b8c75e4
chore: standardize package metadata
afc163 f8a49da
ci: standardize dependabot updates
afc163 7851d84
chore: ignore generated docs artifacts
afc163 82eee44
chore: refine preview workflow ignores
afc163 1e249dd
chore: add father config
afc163 a26a280
docs: document dumi dev server port
afc163 83b1c4b
chore: standardize husky configuration
afc163 c68a60d
chore: standardize package type entry
afc163 770bc7e
docs: normalize readme badges
afc163 72f6d60
ci: limit reusable workflow secrets
afc163 ff13c90
ci: restore reusable workflow compatibility
afc163 fd8a71b
ci: narrow surge preview permissions
afc163 c14704e
chore: limit reusable workflow secrets
afc163 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,22 @@ | ||
| import { defineConfig } from 'dumi'; | ||
| import path from 'path'; | ||
|
|
||
| // const isProdSite = | ||
| // // 不是预览模式 同时是生产环境 | ||
| // process.env.PREVIEW !== 'true' && process.env.NODE_ENV === 'production'; | ||
|
|
||
| // const name = 'tooltip'; | ||
| const basePath = process.env.GH_PAGES ? '/tooltip/' : '/'; | ||
| const publicPath = basePath; | ||
|
|
||
| export default defineConfig({ | ||
| alias: { | ||
| 'rc-tooltip$': path.resolve('src'), | ||
| 'rc-tooltip/es': path.resolve('src'), | ||
| '@rc-component/tooltip$': path.resolve('src'), | ||
| '@rc-component/tooltip/assets': path.resolve('assets'), | ||
| '@rc-component/tooltip/es': path.resolve('src'), | ||
| }, | ||
| mfsu: false, | ||
| favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'], | ||
| themeConfig: { | ||
| name: 'Tooltip', | ||
| logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', | ||
| }, | ||
| // base: isProdSite ? `/${name}/` : '/', | ||
| // publicPath: isProdSite ? `/${name}/` : '/', | ||
| outputPath: 'docs-dist', | ||
| base: basePath, | ||
| publicPath, | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,2 @@ | ||
| # These are supported funding model platforms | ||
|
|
||
| github: ant-design # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
| patreon: # Replace with a single Patreon username | ||
| open_collective: ant-design # Replace with a single Open Collective username | ||
| ko_fi: # Replace with a single Ko-fi username | ||
| tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
| community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
| liberapay: # Replace with a single Liberapay username | ||
| issuehunt: # Replace with a single IssueHunt username | ||
| lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
| polar: # Replace with a single Polar username | ||
| buy_me_a_coffee: # Replace with a single Buy Me a Coffee username | ||
| thanks_dev: # Replace with a single thanks.dev username | ||
| custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] | ||
| github: ant-design | ||
| open_collective: ant-design |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,8 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: npm | ||
| directory: "/" | ||
| schedule: | ||
| interval: daily | ||
| time: "21:00" | ||
| open-pull-requests-limit: 10 | ||
| ignore: | ||
| - dependency-name: "@types/react" | ||
| versions: | ||
| - 17.0.0 | ||
| - 17.0.1 | ||
| - 17.0.2 | ||
| - 17.0.3 | ||
| - dependency-name: "@types/react-dom" | ||
| versions: | ||
| - 17.0.0 | ||
| - 17.0.1 | ||
| - 17.0.2 | ||
| - dependency-name: less | ||
| versions: | ||
| - 4.1.0 | ||
| - package-ecosystem: npm | ||
| directory: '/' | ||
| schedule: | ||
| interval: daily | ||
| time: '21:00' | ||
| open-pull-requests-limit: 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: 'CodeQL' | ||
|
|
||
| on: | ||
| push: | ||
| branches: ['master'] | ||
| pull_request: | ||
| branches: ['master'] | ||
| schedule: | ||
| - cron: '17 10 * * 1' | ||
|
|
||
| jobs: | ||
| analyze: | ||
| name: Analyze | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| language: [javascript] | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| queries: +security-and-quality | ||
|
|
||
| - name: Autobuild | ||
| uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e | ||
| with: | ||
| category: '/language:${{ matrix.language }}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,12 @@ | ||
| name: ✅ test | ||
| on: [push, pull_request] | ||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: [master] | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test: | ||
| uses: react-component/rc-test/.github/workflows/test.yml@main | ||
| secrets: inherit | ||
| uses: react-component/rc-test/.github/workflows/test-utoo.yml@main | ||
| secrets: inherit | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: React Doctor | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review] | ||
| push: | ||
| branches: [master] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| issues: write | ||
| statuses: write | ||
|
|
||
| concurrency: | ||
| group: react-doctor-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| react-doctor: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | ||
| with: | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
| - uses: millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3 |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Surge Preview | ||
|
|
||
| on: | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| checks: write | ||
| statuses: write | ||
|
|
||
| jobs: | ||
| preview: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| PREVIEW: true | ||
| 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: docs-dist | ||
| failOnError: false | ||
| setCommitStatus: false | ||
| - name: Skip Surge preview | ||
| if: ${{ secrets.SURGE_TOKEN == '' }} | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
| run: echo "SURGE_TOKEN is not configured; skip Surge preview." | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.