File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 1+ name : Cloudflare Pages Preview
2+
3+ on :
4+ pull_request :
5+
6+ permissions :
7+ contents : read
8+ deployments : write
9+
10+ jobs :
11+ preview :
12+ runs-on : ubuntu-latest
13+ env :
14+ CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
15+ CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
16+ CLOUDFLARE_PAGES_PROJECT : ${{ vars.CLOUDFLARE_PAGES_PROJECT }}
17+ PREVIEW : true
18+ steps :
19+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
20+ with :
21+ persist-credentials : false
22+ - name : Skip Cloudflare Pages preview
23+ if : ${{ env.CLOUDFLARE_API_TOKEN == '' || env.CLOUDFLARE_ACCOUNT_ID == '' || env.CLOUDFLARE_PAGES_PROJECT == '' }}
24+ run : echo "Cloudflare Pages preview is not configured; skip deployment."
25+ - name : Install dependencies
26+ if : ${{ env.CLOUDFLARE_API_TOKEN != '' && env.CLOUDFLARE_ACCOUNT_ID != '' && env.CLOUDFLARE_PAGES_PROJECT != '' }}
27+ run : npm install
28+ - name : Build site
29+ if : ${{ env.CLOUDFLARE_API_TOKEN != '' && env.CLOUDFLARE_ACCOUNT_ID != '' && env.CLOUDFLARE_PAGES_PROJECT != '' }}
30+ run : npm run build
31+ - name : Deploy preview
32+ if : ${{ env.CLOUDFLARE_API_TOKEN != '' && env.CLOUDFLARE_ACCOUNT_ID != '' && env.CLOUDFLARE_PAGES_PROJECT != '' }}
33+ uses : cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0
34+ with :
35+ apiToken : ${{ env.CLOUDFLARE_API_TOKEN }}
36+ accountId : ${{ env.CLOUDFLARE_ACCOUNT_ID }}
37+ command : pages deploy dist --project-name=${{ env.CLOUDFLARE_PAGES_PROJECT }} --branch=${{ github.head_ref }}
38+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
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 @@ -2,5 +2,5 @@ name: ✅ test
22on : [push, pull_request]
33jobs :
44 test :
5- uses : react-component/rc-test/.github/workflows/test.yml@main
5+ uses : react-component/rc-test/.github/workflows/test-utoo .yml@main
66 secrets : inherit
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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
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+ env :
15+ SURGE_TOKEN : ${{ secrets.SURGE_TOKEN }}
16+ steps :
17+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
18+ with :
19+ persist-credentials : false
20+ - uses : afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec
21+ if : ${{ env.SURGE_TOKEN != '' }}
22+ with :
23+ surge_token : ${{ env.SURGE_TOKEN }}
24+ github_token : ${{ secrets.GITHUB_TOKEN }}
25+ dist : dist
26+ failOnError : true
27+ setCommitStatus : true
28+ build : |
29+ npm install
30+ npm run build
31+ - name : Skip Surge preview
32+ if : ${{ env.SURGE_TOKEN == '' }}
33+ run : echo "SURGE_TOKEN is not configured; skip Surge preview."
You can’t perform that action at this time.
0 commit comments