Skip to content

feat: bump fetch 3.6.3 with node 22.22.3, 24.15.0 and 26.2.0 (#277) #71

feat: bump fetch 3.6.3 with node 22.22.3, 24.15.0 and 26.2.0 (#277)

feat: bump fetch 3.6.3 with node 22.22.3, 24.15.0 and 26.2.0 (#277) #71

Workflow file for this run

name: Deploy docs
on:
push:
branches: [main]
paths:
- 'docs-site/**'
- '.github/workflows/docs.yml'
pull_request:
paths:
- 'docs-site/**'
- '.github/workflows/docs.yml'
workflow_dispatch:
permissions:
contents: read
# PR runs and main-branch deploys use separate concurrency groups so a long
# PR build never queues behind a production deploy (or vice versa). The
# production `pages` group keeps `cancel-in-progress: false` so deploys never
# clobber each other; PR runs cancel their own previous run.
concurrency:
group: ${{ github.event_name == 'push' && 'pages' || format('pages-pr-{0}', github.ref) }}
cancel-in-progress: ${{ github.event_name != 'push' }}
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: docs-site
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: 'npm'
cache-dependency-path: docs-site/package-lock.json
- name: Install dependencies
run: npm ci --no-audit --no-fund
- name: Build with VitePress
run: npm run docs:build
- name: Upload Pages artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: docs-site/.vitepress/dist
deploy:
if: github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5