image: hosttoday/ht-docker-node:npmci

stages:
- test
- release

before_script:
  - "apt-get update && apt-get install nginx -y"
    
testSTABLE:
  stage: test
  script:
    - npmci npm install
    - npmci npm test stable
  only:
    - tags
  tags:
    - docker
    - notpriv

release:
  stage: release
  environment: npmjs-com_registry
  script:
    - npmci npm prepare
    - npmci npm publish
  only:
    - tags
  tags:
    - docker