# This is a sample build configuration for JavaScript.
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:9.11.1

pipelines:
 branches:
    master:
      - step:
          name: Deploy to master
          caches:
            - node
          script: 
            - npm install
    TEST:
      - step:
          name: Deploy to test
          deployment: test
          caches:
            - node
          script: 
            - npm install
    QA:
      - step:
            name: Deploy to pre-prod
            deployment: staging
            caches:
              - node
            script: 
              - npm install
    PROD:
      - step:
            name: Deploy to production
            deployment: production
            caches:
              - node
            script: 
              - npm install
#test