chore: release v1.12.0 #1270
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: Pages (Docs + Demo) | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'docs/**' | |
| - 'packages/web/**' | |
| - 'packages/shared/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - '.github/workflows/pages.yml' | |
| pull_request: | |
| paths: | |
| - 'docs/**' | |
| - 'packages/web/**' | |
| - 'packages/shared/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - '.github/workflows/pages.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true' | |
| concurrency: | |
| group: pages-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build docs & demo | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build VitePress docs | |
| env: | |
| GITHUB_ACTIONS: 'true' | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| run: npm run docs:build | |
| - name: Build demo site | |
| env: | |
| VITE_BASE_URL: /${{ github.event.repository.name }}/demo/ | |
| run: npm run build:demo | |
| - name: Merge demo into docs output | |
| run: cp -r packages/web/dist docs/.vitepress/dist/demo | |
| - name: Setup GitHub Pages | |
| if: github.event_name != 'pull_request' | |
| uses: actions/configure-pages@v5 | |
| - name: Upload Pages artifact | |
| if: github.event_name != 'pull_request' | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/.vitepress/dist | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| if: github.event_name != 'pull_request' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| steps: | |
| - name: Deploy Pages artifact | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |