Skip to content

Instantly share code, notes, and snippets.

@anvilation
Last active August 30, 2021 12:20
Show Gist options
  • Save anvilation/7ca9d144158b9e150228a4cb1556dffd to your computer and use it in GitHub Desktop.
Save anvilation/7ca9d144158b9e150228a4cb1556dffd to your computer and use it in GitHub Desktop.
Smart UI CI / CD - Extend pipeline to run yeoman builds
# 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: '14.x'
displayName: 'Install Node.js'
- script: |
npm install grunt-cli yo yeoman-gen-run -g
npm install
echo 'Run Test'
npm run test
echo 'Npm Link'
npm link
displayName: 'npm install and build'
- script: |
echo 'Run Smart UI Install'
mkdir smartui
cd smartui
yo csui-extension --secret-sauce
echo 'Run Widget Install'
yo csui-extension:widget --secret-sauce --force
npm install
displayName: 'Yo Build and Npm Install'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment