fix(td-doc-changelog): update changelog fetch URL (#675) #112
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: | |
branches: [main] | |
paths: | |
- 'packages/components/**' | |
- 'packages/theme-generator/**' | |
pull_request: | |
branches: [main] | |
paths: | |
- 'packages/components/**' | |
- 'packages/theme-generator/**' | |
- 'site/**' | |
jobs: | |
build: | |
if: github.repository == 'Tencent/tdesign' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: pnpm install | |
- run: pnpm --filter 'tdesign-site-components' --filter 'tdesign-theme-generator' run build | |
- run: pnpm dlx pkg-pr-new publish './packages/components' './packages/theme-generator' | |
build-site: | |
if: github.repository == 'Tencent/tdesign' && github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo ${{ github.event.number }} > pr-id.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pr-id | |
path: pr-id.txt | |
retention-days: 5 | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: pnpm install | |
- run: pnpm run site:preview | |
- run: cp _site/index.html _site/404.html | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: tdesign-site | |
path: _site | |
retention-days: 5 |