# 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:10.7.0

pipelines:
  branches:
    master:
      - step:
          script: # Modify the commands below to build your repository.
            - npm install -g npm-login-cmd
            - npm install
            - npm run build
            - npx npm-login-cmd
            - npm publish --access public
