stylelint: stage: lint 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: - node_modules/ script: - npm run stylelint-ci --silent > stylelint-report.json artifacts: when: on_failure expose_as: 'stylelint' paths: - stylelint-report.json allow_failure: false rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_COMMIT_BRANCH == "develop"