ldc-shared-ci/build/npm.yml
Vincent BRIDIER 9d4a029160 Merge branch 'bump-node' into 'main'
ci: bump node to 24 LTS

See merge request ldc-web/shared-ci!21
2026-05-11 08:51:34 +00:00

27 lines
957 B
YAML

npm-build:
stage: build
image: node:24
before_script:
- npm config set @ldc-web:registry https://${CI_SERVER_HOST}/api/v4/packages/npm/
- npm config set -- '//${CI_SERVER_HOST}/api/v4/packages/npm/:_authToken' "${CI_DEPLOY_PASSWORD}"
- npm config set @uwil:registry=https://lab.s-web.fr/api/v4/groups/ldc-web/-/packages/npm/
- npm config set -- '//${CI_SERVER_HOST}/api/v4/groups/ldc-web/-/packages/npm/:_authToken' "${CI_DEPLOY_PASSWORD}"
- npm install
cache:
paths:
- public/
script:
- npm run prod
artifacts:
expose_as: 'front-build'
paths:
- public/
allow_failure: false
dependencies:
- npm-security
needs:
- job: npm-security
optional: true
rules:
- if: $CI_COMMIT_BRANCH == "trunk" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"
- if: $CI_COMMIT_TAG != null