UNPKG

@devilsdev/rag-pipeline-utils

Version:

A modular toolkit for building RAG (Retrieval-Augmented Generation) pipelines in Node.js

47 lines (36 loc) โ€ข 1.02 kB
# .github/workflows/docs-ci.yml # Version: 1.2.0 # Description: CI pipeline for linting, testing, and building docs with improved caching and consistency # Author: Ali Kahwaji name: ๐Ÿ“˜ Docs CI on: push: branches: [main] pull_request: branches: [main] jobs: docs-ci: runs-on: ubuntu-latest steps: - name: โฌ‡๏ธ Checkout code uses: actions/checkout@v4 - name: ๐ŸŸข Setup Node.js uses: actions/setup-node@v4 with: node-version: 20 cache: 'npm' cache-dependency-path: '**/package-lock.json' - name: ๐Ÿ“ฆ Install dependencies run: npm ci - name: ๐Ÿงน Lint codebase run: npm run lint - name: ๐Ÿ›  Build documentation run: npm run docs:build - name: โœ… Run tests run: npm test if: ${{ always() }} - name: ๐Ÿ“ฆ Upload built docs (optional) uses: actions/upload-artifact@v4 with: name: docusaurus-build path: docs-site/build