Skip to content

Commit

Permalink
docs: ensure nodejs setup works
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimon-au committed Nov 28, 2024
1 parent 37e97c5 commit 9775532
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/contextive-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,28 @@ on:


jobs:
build-docs:
name: Build Docs
docs:
name: Docs
runs-on: 'ubuntu-latest'
defaults:
run:
working-directory: 'docs/web/'
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup NodeJS
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
cache-dependency-path: docs/web/package-lock.json

- name: Install Dependencies
id: install-deps
run: npm ci
working-directory: docs/web/
- run: npm ci

- name: Build
id: build
run: npm run build
working-directory: docs/web/
- run: npm run build

- name: Deploy
id: deploy
run: npm run deploy
working-directory: docs/web/
- run: npm run deploy
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH: ${{ secrets.NETLIFY_AUTH }}

0 comments on commit 9775532

Please sign in to comment.