[pull] master from ant-design:master #2919
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
| name: Publish Any Commit | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - run: corepack enable | |
| - uses: utooland/setup-utoo@e7aa4d726a17f79f68aed736476ea5bd68f8ba52 # v1 | |
| - name: Install dependencies | |
| run: ut | |
| - name: Build | |
| run: ut build | |
| env: | |
| NODE_OPTIONS: --max_old_space_size=4096 | |
| # ========== Prepare examples ========== | |
| - name: Clear examples | |
| run: rm -rf examples | |
| - name: Clone examples | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| repository: ant-design/ant-design-examples | |
| path: examples | |
| - name: Modify examples | |
| run: utx tsx scripts/prepare-examples.ts | |
| - run: utx pkg-pr-new publish --template './examples/examples/*' |