Merge pull request #512 from tsamaya/renovate/typescript-eslint-monorepo #168
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: "Publish documentation" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
| # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| publish-documentation: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: "${{ steps.deployment.outputs.page_url }}" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Check out repository" | |
| uses: actions/checkout@v6 | |
| - name: "Setup Pages" | |
| uses: actions/configure-pages@v5 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest # https://pnpm.io/installation#compatibility | |
| - name: "Set up Node.js" | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - run: pnpm install | |
| - name: "Build documentation" | |
| run: pnpm run build:docs | |
| # - name: "Upload Pages artifacts" | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: github-pages | |
| # path: docs/ | |
| - name: "Upload artifact" | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: docs/ | |
| - name: "Deploy documentation to GitHub Pages" | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |