* chore: update dependencies, Node.js, pnpm, and GitHub Actions * chore: update pnpm/setup to v3.1.2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: update pnpm/setup examples to v3.1.2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
59 lines
1.8 KiB
YAML
59 lines
1.8 KiB
YAML
name: Documentation
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'pnpm/docs/**'
|
|
- 'pnpm11/docs/**'
|
|
- 'pnpr/docs/**'
|
|
- 'DOCUMENTATION.md'
|
|
- '.github/workflows/docs.yml'
|
|
- '.github/workflows/sync-docs.yml'
|
|
- '.github/scripts/prepare-docs-sync*.mjs'
|
|
- '.github/scripts/copy-docs-artifact*.mjs'
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'pnpm/docs/**'
|
|
- 'pnpm11/docs/**'
|
|
- 'pnpr/docs/**'
|
|
- 'DOCUMENTATION.md'
|
|
- '.github/workflows/docs.yml'
|
|
- '.github/workflows/sync-docs.yml'
|
|
- '.github/scripts/prepare-docs-sync*.mjs'
|
|
- '.github/scripts/copy-docs-artifact*.mjs'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: docs-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
repository: pnpm/pnpm.io
|
|
ref: f5c920521d391d229912b7363ccaa629f671a846 # pnpm.io documentation importer
|
|
path: website
|
|
persist-credentials: false
|
|
- uses: pnpm/setup@fa36a5ef7dcdefc3a7cb25655c122e00cf6e636e # v3.1.2
|
|
with:
|
|
runtime: node@22
|
|
install: false
|
|
- name: Test release source validation
|
|
run: node --test .github/scripts/prepare-docs-sync.test.mjs .github/scripts/copy-docs-artifact.test.mjs
|
|
- name: Build the website with this PR's documentation
|
|
working-directory: website
|
|
run: |
|
|
pnpm install --frozen-lockfile
|
|
node scripts/sync-docs.mjs .. --preview
|
|
pnpm build
|
|
pnpm check-urls
|