Skip to content

Commit

Permalink
Merge branch 'next' of https://github.com/wfp/ui into next
Browse files Browse the repository at this point in the history
* 'next' of https://github.com/wfp/ui: (21 commits)
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  Update azure-pipelines.yml for Azure Pipelines
  ...
  • Loading branch information
Utzel-Butzel committed Jul 6, 2020
2 parents 63e07fa + 808a683 commit b89e07a
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,42 @@ steps:
displayName: 'Install Node.js'
- script: |
npm install
# npm run semantic-release
# npm run build
# npm run build:storybook
npm run semantic-release
npm run build
npm run build:storybook
displayName: 'npm build storybook and publish'

- task: Bash@3
inputs:
targetType: 'inline'
script: |
PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
echo "Package version"
echo $PACKAGE_VERSION
NPM_VERSION=${PACKAGE_VERSION//./-}
echo $NPM_VERSION
echo '##vso[task.setvariable variable=NPM_VAR]'$NPM_VERSION
- task: S3Upload@1
inputs:
bucketName:
awsCredentials: 'WFP UI-Kit'
regionName: 'eu-west-1'
bucketName: 'uikit.wfp.org'
sourceFolder: './dist'
globExpressions: '**'
targetFolder: "dist$(NPM_VAR)"
createBucket: true
logRequest: true
logResponse: true


- task: S3Upload@1
inputs:
awsCredentials: 'WFP UI-Kit'
regionName: 'eu-west-1'
bucketName: 'uikit.wfp.org'
sourceFolder: './docs'
globExpressions: '**'
targetFolder: "docs"
createBucket: true
logRequest: true
logResponse: true

0 comments on commit b89e07a

Please sign in to comment.