style(XMarkdown): migrate component styles from Less to CSS #2573
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
| # Each PR will build preview site that help to check code is work as expect. | |
| name: Preview Build | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| # Cancel prev CI if new commit come | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-site: | |
| name: build preview | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: utooland/setup-utoo@v1 | |
| - run: ut | |
| - run: ut prestart --workspaces | |
| - name: ut site | |
| id: site | |
| run: ut site --workspace packages/x | |
| env: | |
| NODE_OPTIONS: '--max_old_space_size=4096' | |
| - name: upload site artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: site | |
| path: packages/x/_site/ | |
| retention-days: 5 | |
| # Upload PR id for next workflow use | |
| - name: Save PR number | |
| if: ${{ always() }} | |
| run: echo ${{ github.event.number }} > ./pr-id.txt | |
| - name: Upload PR number | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pr | |
| path: ./pr-id.txt |