Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
branches:
include:
- '*'
paths:
include:
- '*'
exclude:
- '**/*.yml'
- '**/*.yaml'
pool:
name: default
variables:
- group: spo-dev-var-group
- group: spo-prod-var-group
- name: node_version
value: '14.x'
- name: package_manager
value: 'npm'
- name: working_directory
value: '.'
stages:
- stage: Build
dependsOn: []
jobs:
- template: SPFX-Pipelines-Templates/jobs/build.yml
parameters:
working_directory: ${{ variables.working_directory }}
package_manager: ${{ variables.package_manager }}
node_version: ${{ variables.node_version }}
- stage: Test
dependsOn: []
jobs:
- template: SPFX-Pipelines-Templates/jobs/test.yml
parameters:
working_directory: ${{ variables.working_directory }}
package_manager: ${{ variables.package_manager }}
node_version: ${{ variables.node_version }}
- stage: Deploy_Dev
dependsOn:
- Build
jobs:
- template: SPFX-Pipelines-Templates/jobs/deploy.yml
parameters:
display_name: Deploy to development
target_environment: Development
node_version: ${{ variables.node_version }}
o365_client_id: $(ClientId)
o365_client_secret: $(ClientSecret)
o365_app_catalog_site_url: https://dvagov.sharepoint.com/sites/siteprovisioning-dev
o365cli_app_catalog_scope: sitecollection
o365cli_deploy_extra_arguments: '--skipFeatureDeploymet'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment