ldc-web-cookie-notice/.gitlab-ci.yml
2023-04-11 14:55:04 +00:00

30 lines
798 B
YAML

include:
- project: 'ldc-web/shared-ci'
ref: 'main'
file: 'lint/eslint.yml'
- project: 'ldc-web/shared-ci'
ref: 'main'
file: 'lint/stylelint.yml'
- project: 'ldc-web/shared-ci'
ref: 'main'
file: 'security/npm.yml'
- project: 'ldc-web/shared-ci'
ref: 'main'
file: 'build/npm.yml'
deploy:
image: node:latest
stage: deploy
script:
- npm config set @ldc-web:registry https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/
- npm config set -- '//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken' "${CI_JOB_TOKEN}"
- npm version --no-git-tag-version --allow-same-version ${CI_COMMIT_TAG}
- npm publish
rules:
- if: $CI_COMMIT_TAG
stages:
- lint
- security
- build
- deploy