Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Fix to use npm-ci on workflows #174

Fix to use npm-ci on workflows

Fix to use npm-ci on workflows #174

Workflow file for this run

name: js
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
env:
CI: true
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: ncmb_min_js
path: ncmb.min.js