ldc-shared-ci/build/npm.yml
2023-02-21 15:33:51 +00:00

18 lines
409 B
YAML

npm-build:
stage: build
image: node:17.9.1
before_script:
- npm install
cache:
paths:
- public/build/
script:
- npm run prod
artifacts:
expose_as: 'front-build'
paths:
- public/build
allow_failure: false
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == "develop"