Skip to content

Instantly share code, notes, and snippets.

@karm435
Created November 27, 2020 03:15
Show Gist options
  • Save karm435/b6518b23b6b196ec6f740ebd88a830e4 to your computer and use it in GitHub Desktop.
Save karm435/b6518b23b6b196ec6f740ebd88a830e4 to your computer and use it in GitHub Desktop.
Ionic build steps
parameters:
- name: environment
displayName: "Ionic Build environment"
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
- script: npm install -g @ionic/cli
displayName: 'install ionic cli'
- task: Npm@1
inputs:
workingDir: '$(Build.SourcesDirectory)'
command: install
displayName: 'npm install'
- script: ionic build -c=${{ parameters.environment }}
displayName: 'build ionic'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment