mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-09 16:48:46 +00:00
2dd2887ff7
* ci: add docs build workflow Add CI workflow that runs npm ci and npm run build in src/docs whenever files under src/docs change in a pull request. Closes #3225 * ci: also trigger docs build when workflow file changes * ci: address docs build workflow review
28 lines
476 B
YAML
28 lines
476 B
YAML
name: Docs Build
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'src/docs/**'
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build docs
|
|
run: npm run build
|
|
working-directory: src/docs
|