Files
fox/ci/build/npm/build.inc.yml
T
Бурденко Алексей 9cb012066d up ci
2025-06-20 15:36:38 +03:00

46 lines
1.1 KiB
YAML

# - > переносы строк удаляются
# - | переносы строк не удаляются
build-npm:
image: harbor.vimpelcom.ru/dockerhub/library/node:lts
stage: build
cache:
- key:
files:
- package.json
paths:
- node_modules/
script:
# - GREEN=$'\033[0;32m'
# - RED=$'\033[0;31m'
# - BLUE=$'\033[0;36m'
# - WHITE=$'\033[0;37m'
# - RESET=$'\033[0m'
# - |
# if [ -f "${CI_PROJECT_DIR}/VERSION" ]; then
# APPVERSION=$(cat ${CI_PROJECT_DIR}/VERSION)
# fi
# echo "APPVERSION(VERSION) ${APPVERSION}"
# if [[ -z "$APPVERSION" ]]; then
# echo "APPVERSION is null"
# exit 1
# fi
# - echo VITE_VERSION = "$APPVERSION" >> .env
# - export PRODUCT="${PRODUCT_CLOUD}"
- npm install
- npm run build
needs:
- job: test-npm
artifacts: true # true by default, grabs `node_modules`
artifacts:
paths:
- "$NPM_DIST_DIR"
reports:
dotenv: .env
rules:
- !reference [.build-npm-rules, rules]