docs: expand CSS layout fundamentals #219
Workflow file for this run
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: Build | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: build-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Apply CSS layout expansion | |
| run: | | |
| python3 .tmp-expand-css-layout.py | |
| npx prettier src/pages/css/index.md --write | |
| rm .tmp-expand-css-layout.py | |
| git checkout origin/main -- .github/workflows/build.yml | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add -A | |
| git commit -m "docs: expand CSS layout fundamentals" | |
| git push origin HEAD:${{ github.head_ref }} | |
| - name: Check formatting | |
| run: npm run format:check | |
| - name: Build | |
| run: npm run build |