image: node:12

pipelines:
  branches:
    master:
      - step:
          name: Deploy to Azure
          deployment: production
          caches:
            - node
          script:
            - npm ci
            - npm build
            - pipe: microsoft/azure-storage-deploy:1.1.1
              variables:
                SOURCE: 'build'
                DESTINATION: 'https://skmwebsitemain.z6.web.core.windows.net/'
                DESTINATION_SAS_TOKEN: $SASTOKEN