Skip to content

Update node.js.yml

Update node.js.yml #21

Workflow file for this run

name: Build production artifacts
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
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'
- run: |
npm ci --ignore-scripts
npm run install:local
npm run build
- name: Store production artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist