# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

trigger:
- master

pool:
  vmImage: 'windows-latest'

steps:
- task: NodeTool@0
  inputs:
    versionSpec: '10.x'
  displayName: 'Install Node.js'

- script: |
    yarn install
    node ./scripts/rename.js storybook-chromatic
  displayName: 'yarn install and build'
- script: |
    yarn chromatic --project-token="gcaw1ai2dgo"
  displayName: 'run chromatic'
