Created
May 26, 2021 09:26
-
-
Save anvilation/e9802b0b06b9c50ea7556fbaa531ee1e to your computer and use it in GitHub Desktop.
Smart UI CI / CD - Add build task to pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
npm run build | |
displayName: 'Yo Build and Npm Install' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment