docs-updated #118
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: CI/CD | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| repository_dispatch: | |
| types: [docs-updated] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-cd-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| # ── Permissions ─────────────────────────────────────────────────────────────── | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| # ── Workflow validation ──────────────────────────────────────────────────── | |
| shell: | |
| name: Workflow CI | |
| uses: KevinDeBenedetti/github-workflows/.github/workflows/ci-shell.yml@main | |
| with: | |
| run-shellcheck: false | |
| run-actionlint: true | |
| actionlint-paths: .github/workflows/ | |
| run-bats: false | |
| # ── TypeScript typecheck + build ─────────────────────────────────────────── | |
| node: | |
| name: Node CI | |
| uses: KevinDeBenedetti/github-workflows/.github/workflows/ci-node.yml@main | |
| with: | |
| node-version: '22' | |
| run-lint: true | |
| run-typecheck: true | |
| run-test: false | |
| run-build: true | |
| run-link-check: false | |
| # ── Security ─────────────────────────────────────────────────────────────── | |
| security: | |
| name: Security | |
| if: github.event_name == 'pull_request' | |
| uses: KevinDeBenedetti/github-workflows/.github/workflows/security.yml@main | |
| with: | |
| run-node-audit: false | |
| run-python-audit: false | |
| run-secret-scan: true | |
| run-codeql: false | |
| permissions: | |
| security-events: write | |
| actions: read | |
| contents: read | |
| pull-requests: read | |
| bot-check: | |
| name: Bot check | |
| if: github.event_name == 'pull_request' | |
| uses: KevinDeBenedetti/github-workflows/.github/workflows/check-bot-commits.yml@main | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| # ── GitHub Pages deploy ──────────────────────────────────────────────────── | |
| pages: | |
| name: Pages | |
| needs: [shell, node] | |
| if: github.event_name != 'pull_request' | |
| uses: KevinDeBenedetti/github-workflows/.github/workflows/deploy-pages.yml@main | |
| with: | |
| node-version: '22' | |
| build-command: bun run build | |
| output-directory: .vitepress/dist | |
| todo-sync: | |
| name: TODO sync | |
| if: github.event_name == 'push' || github.event_name == 'issues' || github.event_name == 'workflow_dispatch' | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| uses: KevinDeBenedetti/github-workflows/.github/workflows/todo-sync.yml@main | |
| with: | |
| issue-number: ${{ github.event.issue.number || 0 }} | |
| secrets: inherit | |
| label-sync: | |
| name: Label sync | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| permissions: | |
| contents: read | |
| issues: write | |
| uses: KevinDeBenedetti/github-workflows/.github/workflows/label-sync.yml@main | |
| secrets: inherit |