Skip to content

Commit b89e07a

Browse files
committed
Merge branch 'next' of https://github.com/wfp/ui into next
* '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 ...
2 parents 63e07fa + 808a683 commit b89e07a

1 file changed

Lines changed: 34 additions & 5 deletions

File tree

azure-pipelines.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,42 @@ steps:
1616
displayName: 'Install Node.js'
1717
- script: |
1818
npm install
19-
# npm run semantic-release
20-
# npm run build
21-
# npm run build:storybook
19+
npm run semantic-release
20+
npm run build
21+
npm run build:storybook
2222
displayName: 'npm build storybook and publish'
23+
24+
- task: Bash@3
25+
inputs:
26+
targetType: 'inline'
27+
script: |
28+
PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
29+
echo "Package version"
30+
echo $PACKAGE_VERSION
31+
NPM_VERSION=${PACKAGE_VERSION//./-}
32+
echo $NPM_VERSION
33+
echo '##vso[task.setvariable variable=NPM_VAR]'$NPM_VERSION
34+
2335
- task: S3Upload@1
2436
inputs:
25-
bucketName:
37+
awsCredentials: 'WFP UI-Kit'
38+
regionName: 'eu-west-1'
39+
bucketName: 'uikit.wfp.org'
40+
sourceFolder: './dist'
2641
globExpressions: '**'
42+
targetFolder: "dist$(NPM_VAR)"
43+
createBucket: true
44+
logRequest: true
45+
logResponse: true
2746

28-
47+
- task: S3Upload@1
48+
inputs:
49+
awsCredentials: 'WFP UI-Kit'
50+
regionName: 'eu-west-1'
51+
bucketName: 'uikit.wfp.org'
52+
sourceFolder: './docs'
53+
globExpressions: '**'
54+
targetFolder: "docs"
55+
createBucket: true
56+
logRequest: true
57+
logResponse: true

0 commit comments

Comments
 (0)