mirror of
https://github.com/MAKS-IT-COM/maksit-webui.git
synced 2026-08-15 18:08:09 +02:00
13 lines
348 B
Bash
13 lines
348 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
: "${ARTIFACTS_DIR:=/artifacts}"
|
|
mkdir -p "$ARTIFACTS_DIR" /testResults
|
|
|
|
# Customize testScript / build script names for your package.json.
|
|
npm ci
|
|
npm run test:coverage -- --coverage --coverageReporters=json-summary --coverageReporters=text
|
|
cp -r coverage /testResults/
|
|
npm run build
|
|
npm pack --pack-destination "$ARTIFACTS_DIR"
|