Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • develop
  • 2.3.1
  • 2.3.0
  • 2.2.3
  • 2.2.2
6 results

.gitlab-ci.yml

Blame
  • This GitLab CI configuration is valid. Learn more
    .gitlab-ci.yml 401 B
    image: node:latest
    
    cache:
      paths:
        - node_modules/
        - docs/
    
    stages:
      - test
      - publish
    
    test:
      stage: test
      before_script:
        - npm install
        - npm install -g jest
      script:
        - jest
      artifacts:
        paths:
          - docs/test-report.html
          - docs/coverage/lcov.info
    
    publish:
      only:
        refs:
          - tags
      stage: publish
      script:
        - npm install
        - npm publish --verbose