Skip to content

npm build (#87)

npm build (#87) #16

Workflow file for this run

name: Node.js CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: client/package-lock.json # Specify the path to your package-lock.json in the client directory
- name: Install dependencies
run: npm ci
working-directory: ./client # Changes the working directory to client for dependency installation
- name: Build
run: npm run build
working-directory: ./client # Ensures the build command is run inside the client directory