-
-
Notifications
You must be signed in to change notification settings - Fork 770
chore: standardize repository config #1072
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 2 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
d7181f7
chore: standardize repository config
afc163 0aceb21
fix: make preview build generate styles
afc163 a994169
fix: address review feedback
afc163 36ad3d1
fix: keep rc-test secrets inheritance
afc163 86057b8
fix: align test workflow triggers
afc163 a1c5b58
chore: address AI review feedback
afc163 c81376b
docs: standardize README release details
afc163 07b6bc7
ci: make surge preview non-blocking
afc163 666a1e2
ci: keep surge preview as fallback
afc163 5daf8aa
docs: refine README usage and ecosystem note
afc163 9fdfcdd
ci: isolate surge preview token
afc163 c4cfedb
docs: add Chinese README
afc163 b167378
test: align slider test dependencies
afc163 153c511
docs: add Ant Design logo to README
afc163 7b0a938
docs: refine bilingual README branding
afc163 68c003f
chore: standardize rc tooling and docs
afc163 5e73dd6
chore: address standardization review comments
afc163 84bfc8d
ci: update GitHub Actions versions
afc163 f8242c3
ci: use resolvable CodeQL action ref
afc163 4ad6615
ci: use actions checkout v7
afc163 39f0330
chore: standardize package metadata
afc163 3553240
ci: standardize dependabot updates
afc163 2095bcf
chore: ignore generated docs artifacts
afc163 ccb73f7
chore: refine preview workflow ignores
afc163 9b024a9
docs: polish Chinese README wording
afc163 c0a866f
chore: add missing prettier dependency
afc163 7e5635e
chore: align father config and Chinese README
afc163 04750b8
docs: document dumi dev server port
afc163 d27249c
chore: standardize husky configuration
afc163 2dd4a25
chore: standardize package type entry
afc163 946cb1b
docs: normalize readme badges
afc163 6ee6cea
ci: limit reusable workflow secrets
afc163 2a1f1fe
ci: restore reusable workflow compatibility
afc163 bfc472c
docs: polish zh-CN readme wording
afc163 73978ab
ci: narrow surge preview permissions
afc163 92e8649
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,16 +1,23 @@ | ||
| import { defineConfig } from 'dumi'; | ||
| import path from 'path'; | ||
|
|
||
| const basePath = process.env.GH_PAGES ? '/slider/' : '/'; | ||
| const publicPath = process.env.GH_PAGES ? '/slider/' : '/'; | ||
|
|
||
| export default defineConfig({ | ||
| alias: { | ||
| '@rc-component/slider$': path.resolve('src'), | ||
| '@rc-component/slider/es': path.resolve('src'), | ||
| '@rc-component/slider/assets': path.resolve('assets'), | ||
| }, | ||
| mfsu: false, | ||
| favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'], | ||
| themeConfig: { | ||
| name: 'Slider', | ||
| logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', | ||
| }, | ||
| outputPath: 'docs-dist', | ||
| base: basePath, | ||
| publicPath, | ||
| styles: [``], | ||
| }); |
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
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,8 @@ | ||
| name: ✅ test | ||
| on: [push, pull_request] | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test: | ||
| 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 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,39 @@ | ||
| 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: | ||
| SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} | ||
| PREVIEW: true | ||
| steps: | ||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec | ||
| if: ${{ env.SURGE_TOKEN != '' }} | ||
| with: | ||
| surge_token: ${{ env.SURGE_TOKEN }} | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| dist: docs-dist | ||
| failOnError: true | ||
| setCommitStatus: true | ||
| build: | | ||
| npm install | ||
| npm run build | ||
| - name: Skip Surge preview | ||
| if: ${{ env.SURGE_TOKEN == '' }} | ||
| 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,8 @@ yarn.lock | |
| package-lock.json | ||
| pnpm-lock.yaml | ||
| .doc | ||
| docs-dist | ||
| .vercel | ||
| .storybook | ||
|
|
||
| # umi | ||
|
|
||
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.