Skip to content
Snippets Groups Projects
Select Git revision
  • 0e131949b4ececbfd3a61bddccaee58d4229c0d6
  • main default protected
  • 3-rewrite-in-typescript
  • 1.13.6
  • 1.13.5
  • 1.13.4
  • 1.13.3
  • 1.13.2
  • 1.13.1
  • 1.13.0
  • 1.12.4
  • 1.12.3
  • 1.12.2
  • 1.12.1
  • 1.12.0
  • 1.11.0
  • 1.10.1
  • 1.10.0
  • 1.9.0
  • v1.7.0
  • 1.8.0
  • v1.7.1
  • v1.6.2
23 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 995 B
    image: node:latest
    
    include:
      - project: 'general/templates'
        file: '/cicd/SAST-nodejs.gitlab-ci.yml'
      - project: 'general/templates'
        file: '/cicd/npm-audit.gitlab-ci.yml'
      - project: 'general/templates'
        file: '/cicd/sonarqube.gitlab-ci.yml'
    
    variables:
      SONAR_PROJECT_KEY: config
      SONAR_TOKEN: 11922a8e774494f51e1d2f0e695949e4073e7df8
      NPM_REGISTRY: https://it-devops-01:4873
      NPM_TOKEN: ZMh1NzlklUTNNvt573Imgw==
    
    cache:
      paths:
        - node_modules/
        - docs/
    
    stages:
      - build
      - test
      - quality
      - publish
    
    build:
      stage: build
      script:
        - npm install --production
    
    test:
      stage: test
      before_script:
        - npm install -g jest
      script:
        - jest
      artifacts:
        paths:
          - docs/test-report.html
          - docs/coverage/lcov.info
    
    publish:
      stage: publish
      script:
        - printenv NPM_TOKEN
        - npm config set //it-devops-01:4873/:_authToken ${NPM_TOKEN}
        - npm token list --registry $NPM_REGISTRY
        - npm publish --verbose --registry $NPM_REGISTRY