You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

azure-pipelines.yml 975B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Node.js with React
  2. # Build a Node.js project that uses React.
  3. # Add steps that analyze code, save build artifacts, deploy, and more:
  4. # https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
  5. trigger:
  6. - main
  7. steps:
  8. - task: NodeTool@0
  9. inputs:
  10. versionSpec: '16.x'
  11. displayName: 'Install Node.js'
  12. - script: |
  13. npm install
  14. npm run build
  15. displayName: 'npm install and build'
  16. workingDirectory: '$(Build.SourcesDirectory)/frontend'
  17. - task: CmdLine@2
  18. inputs:
  19. script: |
  20. echo Write your commands here
  21. ls
  22. ls $(agent.builddirectory)
  23. ls $(System.DefaultWorkingDirectory)
  24. echo Hello world
  25. - task: CopyFiles@2
  26. inputs:
  27. SourceFolder: '$(Build.SourcesDirectory)/frontend/build'
  28. Contents: '**'
  29. TargetFolder: '$(Build.ArtifactStagingDirectory)'
  30. - task: PublishBuildArtifacts@1
  31. inputs:
  32. PathtoPublish: '$(Build.ArtifactStagingDirectory)'
  33. ArtifactName: 'drop'
  34. publishLocation: 'Container'