docs: use Shadow DOM to display examples #2344
Workflow file for this run
This file contains 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: website | |
on: | |
release: | |
types: [published] | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build-react-day-picker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.16 | |
cache: pnpm | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: rdp-dist | |
path: dist | |
typecheck-website: | |
needs: [build-react-day-picker] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.16 | |
cache: pnpm | |
- uses: actions/download-artifact@v4 | |
with: | |
name: rdp-dist | |
path: dist | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm -F website typecheck | |
build-website: | |
needs: [build-react-day-picker] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.16 | |
cache: pnpm | |
- uses: actions/download-artifact@v4 | |
with: | |
name: rdp-dist | |
path: dist | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm -F website build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: website-build | |
path: website/build |