mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-15 13:38:29 +02:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
757 B
YAML
34 lines
757 B
YAML
name: Publish Any Commit
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
|
|
- run: corepack enable
|
|
- uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Build
|
|
run: bun run build
|
|
|
|
# ========== Prepare examples ==========
|
|
- name: Clear examples
|
|
run: rm -rf examples
|
|
|
|
- name: Clone examples
|
|
uses: actions/checkout@v5
|
|
with:
|
|
repository: ant-design/ant-design-examples
|
|
path: examples
|
|
|
|
- name: Modify examples
|
|
run: bunx tsx scripts/prepare-examples.ts
|
|
|
|
- run: bunx pkg-pr-new publish --template './examples/examples/*'
|