Skip to content

Merge pull request #1592 from kubernetes-client/dependabot/npm_and_ya… #396

Merge pull request #1592 from kubernetes-client/dependabot/npm_and_ya…

Merge pull request #1592 from kubernetes-client/dependabot/npm_and_ya… #396

Workflow file for this run

name: Build and Deploy Docs
on:
push:
branches:
- master
jobs:
build-and-deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
# Pre-check to validate that versions match between package.json
# and package-lock.json. Needs to run before npm install
- name: Validate package.json and package-lock.json versions
run: node version-check.js
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run docs
- name: Deploy docs
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.