Skip to content

updated node version to 20 #74

updated node version to 20

updated node version to 20 #74

name: Deploy Docs to GitHub Pages
on:
push:
branches:
- main
- docs-pipeline
paths:
- "docs/**"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: docs/package-lock.json
- name: build production site
run: |
cd docs
npm ci
# npm run lint # Disabled linting for now
npm run build
shell: bash
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/public
keep_files: true
cname: enbuild-docs.vivplatform.io