# Builds and publishes the Monaco Editor website

pool:
  vmImage: 'ubuntu-latest'

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

  - script: |
      npm install
      npm run build-website
    displayName: 'Build website'

  - script: |
      ./build/publish-website.sh
    env:
      GITHUB_TOKEN: $(GITHUB_TOKEN)
    displayName: 'Publish website'
