chore: move all dev-only optional dependencies under dev
#343
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: docs | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - docs/** | |
| - ".github/workflows/docs.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| test-deploy: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| cache: yarn | |
| cache-dependency-path: docs/yarn.lock | |
| - name: Install dependencies | |
| run: yarn --cwd docs install --frozen-lockfile | |
| - name: Test build website | |
| run: yarn --cwd docs build | |
| deploy: | |
| name: Release Docs | |
| if: ${{ github.event_name == 'workflow_dispatch' }} | |
| uses: ./.github/workflows/_doc_release.yml | |
| secrets: inherit |