diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..2f49777 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,39 @@ +# 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: 'ubuntu-latest' + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm install -g yo gulp + npm install -g @microsoft/generator-sharepoint + gulp bundle --ship + gulp package-solution --ship + displayName: 'npm install and build' + +- task: CopyFiles@2 + inputs: + Contents: | + temp/deploy/** + sharepoint/solution/*.sppkg + TargetFolder: '$(Build.ArtifactStagingDirectory)' + CleanTargetFolder: true + OverWrite: true + +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'drop' + publishLocation: 'Container'