Skip to content

Commit

Permalink
Merge pull request #2 from thenikhilk/azure-pipelines
Browse files Browse the repository at this point in the history
Set up CI with Azure Pipelines
  • Loading branch information
thenikhilk committed Oct 26, 2019
2 parents 2ea86d6 + 9df3ce0 commit e26604b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit e26604b

Please sign in to comment.